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


Groups > gnu.bash.bug > #14404

shopt help possibly wrong

From Hugo Gabriel Eyherabide <hugogabriel.eyherabide@gmail.com>
Newsgroups gnu.bash.bug
Subject shopt help possibly wrong
Date 2018-07-27 14:00 +0300
Message-ID <mailman.4325.1532699926.1292.bug-bash@gnu.org> (permalink)

Show all headers | View raw


Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bas$
uname output: Linux hugo-agile 4.13.0-43-generic #48~16.04.1-Ubuntu SMP Thu
May 17 12:56:46 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu

Bash Version: 4.3
Patch Level: 48
Release Status: release

Description:
        After reading the documentation in "help shopt" I attempted to set
flags, for example, noclobber, by using "shopt -s noclobber", but got an
error message. I've found that I can do that by using "shopt -s -o
-noclobber" but that the help provided me no indication that the additional
"-o" was actually necessary.

Repeat-By:
        Using "shopt -s noclobber" (or any optname) instead of "shopt -s -o
noclobber).

Fix:
        I would suggest to change the help of shopt so that it says [-o
[optname ...] ] instead of [-o] [optname ...], and change the help where
relevant.

Thank you very much.
Yours faithfully.

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

shopt help possibly wrong Hugo Gabriel Eyherabide <hugogabriel.eyherabide@gmail.com> - 2018-07-27 14:00 +0300

csiph-web