bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

test evaluation


From: Wolfram Kleff
Subject: test evaluation
Date: Sun, 23 Sep 2001 12:46:58 +0200

bash version: 2.05-4 (debian)
GNU bash, version 2.05.0(1)-release (i386-pc-linux-gnu)

Description:
Here are some interesting test evaluations:

Repeat-By:
> f="="
> [ -f "$f" -a -r "$f" ] && echo ok
[: too many arguments

> [  -f =  ] && echo ok
ok
(Works as expected)

> [  -f = -a -r = ] && echo ok
[: too many arguments

> [ \( -f = \) -a \( -r = \) ] && echo ok
[: `)' expected, found ]
(Errm...? ;)

Looks like parsing bugs in bash/test...



reply via email to

[Prev in Thread] Current Thread [Next in Thread]