Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #11543 > unrolled thread
| Started by | Eric Blake <eblake@redhat.com> |
|---|---|
| First post | 2015-09-22 09:39 -0600 |
| Last post | 2015-09-22 09:39 -0600 |
| 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.
Re: '[ --version' should give output, instead a bash error missing re: missing ']' Eric Blake <eblake@redhat.com> - 2015-09-22 09:39 -0600
| From | Eric Blake <eblake@redhat.com> |
|---|---|
| Date | 2015-09-22 09:39 -0600 |
| Subject | Re: '[ --version' should give output, instead a bash error missing re: missing ']' |
| Message-ID | <mailman.1602.1442936367.19560.bug-bash@gnu.org> |
[Multipart message — attachments visible in raw view] — view raw
On 09/22/2015 08:22 AM, Daniel Simeone wrote: > > Description: > According to the joint man page for '[' and 'test', '[ --version' > and '[ --help' should give appropriate output, while 'test' should not. You're probably reading the coreutils man page, rather than the bash man page. Bash has not (yet) implemented support for ANY --options to its builtins, although there has been talk on the list of doing so for future versions (especially since ksh has already done it). If you are executing the shell builtins instead of the coreutils versions, then the behavior you see is expected and not a bug. To see the behavior mentioned in the coreutils man page, be sure you run the coreutils version of [, as in: env [ --help or /bin/[ --help -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Back to top | Article view | gnu.bash.bug
csiph-web