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
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.
_
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
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='
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