Bug#562101: psh fails to properly evaluate regular expressions
Package: psh
Version: 1.8-9
Severity: normal
Hi there,
I admit that this can be stupidity on my side, failing to see what's wrong
here, but I think it also might be a bug...
Look at this log, please:
bash$ perl -e '$a=10518; if ($a =~ /\d+/) {print "yes\n";} else {print "no\n";}'
yes
bash$ psh
psh% $a=10518; if ($a =~ /\d+/) {print "yes\n";} else {print "no\n";}
no
psh%
Any reason why psh doesn't think that $a is composed of digits?
Thanks,
Marcos Marado
-- System Information:
Debian Release: 5.0.3
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.29-bpo.2-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages psh depends on:
ii debianutils 2.30 Miscellaneous utilities specific t
ii libbsd-resource-perl 1.28-1+b1 perl BSD::Resource - BSD process r
ii libterm-readline-gnu-perl 1.17a-2+b1 Perl extension for the GNU Readlin
ii perl 5.10.0-23 Larry Wall's Practical Extraction
psh recommends no packages.
psh suggests no packages.
-- no debconf information
Reply to: