Re: file test bug in bash 3.1

2006-05-22 Thread Bob Proulx
Zackary Deems wrote: > echo "blah" >/tmp/blah > ln -s /tmp/blah /tmp/blah.link > if [[ -f "/tmp/blah.link" ]] > then >echo "/tmp/blah.link is a regular file" > else >echo "/tmp/blah.link is NOT a regular file" > fi Thank you for the very nice and concise test case. > links now match for b

file test bug in bash 3.1

2006-05-22 Thread Zackary Deems
echo "blah" >/tmp/blah ln -s /tmp/blah /tmp/blah.link if [[ -f "/tmp/blah.link" ]] then echo "/tmp/blah.link is a regular file" else echo "/tmp/blah.link is NOT a regular file" fi links now match for both links and regular files. This plays hell with quite a bit of existing code. _

Bash 3.1.x doesn't close linux fifos properly. See gentoo bug 133635.

2006-05-22 Thread Peter Fox
Configuration Information [Automatically generated, do not change]: Machine: i686 OS: linux-gnu Compiler: i686-pc-linux-gnu-gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/loc

export does not work on array

2006-05-22 Thread Byron Clark
Configuration Information [Automatically generated, do not change]: Machine: i486 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i486' -DCONF_OSTYPE='linux-gnu' - \DCONF_MACHTYPE='i486-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='

Re: How to use [[ string =~ regexp ]]?

2006-05-22 Thread Peter Volkov
On Вск, 2006-05-21 at 15:55 -0400, Paul Jarc wrote: > [a-z] matches only one charater, but the pattern is not required to > match against the entire string. On Вск, 2006-05-21 at 13:57 -0600, Mike Stroyan wrote: > The =~ regexp match will match a substring by default. You can use ^ and $ > to an