Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #14408
| From | Chet Ramey <chet.ramey@case.edu> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: shopt help possibly wrong |
| Date | 2018-07-27 10:19 -0400 |
| Message-ID | <mailman.4331.1532701240.1292.bug-bash@gnu.org> (permalink) |
| References | <CAK7k5HG7OxzQbR8mSfuZ-T0oToeauu1VLdAYjEc4LXGzX_kKBA@mail.gmail.com> |
On 7/27/18 7:00 AM, Hugo Gabriel Eyherabide wrote: > 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). There is a set of option names for use by `set -o' (mostly the ones corresponding to `set' options and those defined by POSIX) and a bash- specific set available for use with `shopt'. Read the documentation to tell the difference. > > 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. That would be wrong. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
Back to gnu.bash.bug | Previous | Next — Next in thread | Find similar | Unroll thread
Re: shopt help possibly wrong Chet Ramey <chet.ramey@case.edu> - 2018-07-27 10:19 -0400 Re: shopt help possibly wrong hugogabriel.eyherabide@gmail.com - 2018-07-27 09:59 -0700
csiph-web