bug-bash
[Top][All Lists]
Advanced

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

Re: Strange (wrong?) behaviour of "test ! -a file"


From: Ilkka Virta
Subject: Re: Strange (wrong?) behaviour of "test ! -a file"
Date: Sun, 21 Oct 2018 21:24:24 +0300
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

On 21.10. 20:03, Chet Ramey wrote:
The help text for test says

"The behavior of test depends on the number of arguments.  Read the
bash manual page for the complete specification."

Can I suggest adding that note from the help text to the manual under "Bash Conditional Expressions" too? Perhaps also explicitly noting the clash with the binary operators in the descriptions of -a and -o, too.

Something along the lines of the attached patch.

I also think the description of the 3-argument test would be clearer with numbering, so I added that too.

--
Ilkka Virta / address@hidden

Attachment: bashdoc-test.diff
Description: Text document


reply via email to

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