Skip Menu |

This queue is for tickets about the App-perlbrew CPAN distribution.

Report information
The Basics
Id: 123049
Status: open
Priority: 0/
Queue: App-perlbrew

People
Owner: Nobody in particular
Requestors: NHORNE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.80
Fixed in: (no value)



Subject: perlbrew list sometimes includes contents of the current directory
hornenj@ncbimac2024:~/src/njh/smoker/bin$ perlbrew list perl-5.6.2 perl-5.8.1 perl-5.8.2 perl-5.8.3 perl-5.8.4 perl-5.8.5 perl-5.8.6 perl-5.8.7 perl-5.8.8 perl-5.8.9 perl-5.10.0 perl-5.10.1 perl-5.12.4 perl-5.12.5 perl-5.14.0 perl-5.14.1 perl-5.14.2 perl-5.14.3 perl-5.14.4 perl-5.16.0 perl-5.16.1 perl-5.16.2 perl-5.16.3 perl-5.18.0 perl-5.18.1 perl-5.18.2 perl-5.18.3 perl-5.18.4 perl-5.20.0 perl-5.20.1 perl-5.20.2 perl-5.20.3 perl-5.22.0 perl-5.22.1 perl-5.22.2 perl-5.22.3 perl-5.22.4 perl-5.24.0 perl-5.24.1 perl-5.24.2 * perl-5.26.0 perl-5.27.2 hornenj@ncbimac2024:~/src/njh/smoker/bin$ foo=$(perlbrew list) hornenj@ncbimac2024:~/src/njh/smoker/bin$ echo $foo perl-5.6.2 perl-5.8.1 perl-5.8.2 perl-5.8.3 perl-5.8.4 perl-5.8.5 perl-5.8.6 perl-5.8.7 perl-5.8.8 perl-5.8.9 perl-5.10.0 perl-5.10.1 perl-5.12.4 perl-5.12.5 perl-5.14.0 perl-5.14.1 perl-5.14.2 perl-5.14.3 perl-5.14.4 perl-5.16.0 perl-5.16.1 perl-5.16.2 perl-5.16.3 perl-5.18.0 perl-5.18.1 perl-5.18.2 perl-5.18.3 perl-5.18.4 perl-5.20.0 perl-5.20.1 perl-5.20.2 perl-5.20.3 perl-5.22.0 perl-5.22.1 perl-5.22.2 perl-5.22.3 perl-5.22.4 perl-5.24.0 perl-5.24.1 perl-5.24.2 loadall1 loadall2 loadall3 loadall4 loadall5 smoker smokerdaemon smokerloop smokerupdate perl-5.26.0 perl-5.27.2 hornenj@ncbimac2024:~/src/njh/smoker/bin$ ls loadall1 loadall3 loadall5 smokerdaemon smokerupdate loadall2 loadall4 smoker smokerloop hornenj@ncbimac2024:~/src/njh/smoker/bin$
If you run 'perlbrew switch-off' first, it doesn't happen.
在 2017-九月-14 19:10:14 星期四 時,NHORNE 寫到: Show quoted text
> hornenj@ncbimac2024:~/src/njh/smoker/bin$ perlbrew list > perl-5.6.2 > perl-5.8.1 > perl-5.8.2 > perl-5.8.3 > perl-5.8.4 > perl-5.8.5 > perl-5.8.6 > perl-5.8.7 > perl-5.8.8 > perl-5.8.9 > perl-5.10.0 > perl-5.10.1 > perl-5.12.4 > perl-5.12.5 > perl-5.14.0 > perl-5.14.1 > perl-5.14.2 > perl-5.14.3 > perl-5.14.4 > perl-5.16.0 > perl-5.16.1 > perl-5.16.2 > perl-5.16.3 > perl-5.18.0 > perl-5.18.1 > perl-5.18.2 > perl-5.18.3 > perl-5.18.4 > perl-5.20.0 > perl-5.20.1 > perl-5.20.2 > perl-5.20.3 > perl-5.22.0 > perl-5.22.1 > perl-5.22.2 > perl-5.22.3 > perl-5.22.4 > perl-5.24.0 > perl-5.24.1 > perl-5.24.2 > * perl-5.26.0 > perl-5.27.2 > hornenj@ncbimac2024:~/src/njh/smoker/bin$ foo=$(perlbrew list) > hornenj@ncbimac2024:~/src/njh/smoker/bin$ echo $foo > perl-5.6.2 perl-5.8.1 perl-5.8.2 perl-5.8.3 perl-5.8.4 perl-5.8.5 > perl-5.8.6 perl-5.8.7 perl-5.8.8 perl-5.8.9 perl-5.10.0 perl-5.10.1 > perl-5.12.4 perl-5.12.5 perl-5.14.0 perl-5.14.1 perl-5.14.2 perl- > 5.14.3 perl-5.14.4 perl-5.16.0 perl-5.16.1 perl-5.16.2 perl-5.16.3 > perl-5.18.0 perl-5.18.1 perl-5.18.2 perl-5.18.3 perl-5.18.4 perl- > 5.20.0 perl-5.20.1 perl-5.20.2 perl-5.20.3 perl-5.22.0 perl-5.22.1 > perl-5.22.2 perl-5.22.3 perl-5.22.4 perl-5.24.0 perl-5.24.1 perl- > 5.24.2 loadall1 loadall2 loadall3 loadall4 loadall5 smoker > smokerdaemon smokerloop smokerupdate perl-5.26.0 perl-5.27.2 > hornenj@ncbimac2024:~/src/njh/smoker/bin$ ls > loadall1 loadall3 loadall5 smokerdaemon > smokerupdate > loadall2 loadall4 smoker smokerloop > hornenj@ncbimac2024:~/src/njh/smoker/bin$
It appears to me that this is the behaviour of bash -- the "*" inside the $foo variable is a globbing operator and it got expanded in the command `echo $foo`. zsh does not seem to have this behaviour. I'm not certain if there are any shopts that can alter the behaivour of this.