bug-bash
[Top][All Lists]
Advanced

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

Bug in parameter parsing of test built-in


From: Alexander Sulfrian
Subject: Bug in parameter parsing of test built-in
Date: Mon, 27 Jul 2015 15:37:36 +0200

Hi,

I discovered a bug in the parameter parsing of the test built-in:

    $ test -n '<' -a true
    -bash: test: too many arguments

It occurs with '>' and '<' but only with a second test combined with -a
or -o. If also occurs if the < or > are saved in a variable:

    $ foobar='<'
    $ test -n "$foobar" -a true
    -bash: test: too many arguments

    $ bash -version
    GNU bash, version 4.2.37(1)-release 

Thanks,
Alex




reply via email to

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