On Thu, Jun 20, 2013 at 7:09 AM, Greg Wooledge wrote:
> On Wed, Jun 19, 2013 at 06:12:57PM -0500, Dan Douglas wrote:
>> Thanks to mksh, posh, etc not supporting POSIX character classes at all, I'm
>> not so sure it's actually better in practice. (talking about standard shell
>> pattern matching of
On Fri, Jun 21, 2013 at 02:39:14AM -0500, Dan Douglas wrote:
> > If you're writing a script in bash, you MUST NOT use the [a-z]
> > or [A-Z] ranges, or any other alphabetic ranges, unless you are
> > working in the POSIX locale. If you use an alphabetic range in any
> > other locale, you invite di
Hi,
I stumbled into discovering that the -e test for a file does not report the
file as existing if the file is a dead symbolic link. This seems wrong to me.
Here's some test code:-
(WARNING it includes rm -f a b)
#!/bin/bash
bash --version
echo ""
rm -f a b
ln -s b a
[ -a a ] && echo "1. (te
check out
help test
if you want to test fot both you can do
[ -e file -o -h file ] || echo file not present.
AFAIK the current behaviour is intentional and is the most useful.
cheers
Gesendet: Freitag, 21. Juni 2013 um 15:43 Uhr
Von: "Mark Young"
An: bug-bash@gnu.or