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


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

shopt help possibly wrong

Started byHugo Gabriel Eyherabide <hugogabriel.eyherabide@gmail.com>
First post2018-07-27 14:00 +0300
Last post2018-07-27 14:00 +0300
Articles 1 — 1 participant

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


Contents

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

#14404 — shopt help possibly wrong

FromHugo Gabriel Eyherabide <hugogabriel.eyherabide@gmail.com>
Date2018-07-27 14:00 +0300
Subjectshopt help possibly wrong
Message-ID<mailman.4325.1532699926.1292.bug-bash@gnu.org>
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.

[toc] | [standalone]


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


csiph-web