Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #14726 > unrolled thread

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

Started byIlkka Virta <itvirta@iki.fi>
First post2018-10-21 21:24 +0300
Last post2018-10-21 21:24 +0300
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Strange (wrong?) behaviour of "test ! -a file" Ilkka Virta <itvirta@iki.fi> - 2018-10-21 21:24 +0300

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

FromIlkka Virta <itvirta@iki.fi>
Date2018-10-21 21:24 +0300
SubjectRe: Strange (wrong?) behaviour of "test ! -a file"
Message-ID<mailman.2551.1540146298.1284.bug-bash@gnu.org>

[Multipart message — attachments visible in raw view] — view raw

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 / itvirta@iki.fi

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web