Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 40914 - 'bash -x' missing in 'man bash'
Summary: 'bash -x' missing in 'man bash'
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High minor
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-08 17:54 UTC by Philip Webb
Modified: 2004-02-15 03:05 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philip Webb 2004-02-08 17:54:34 UTC
'man bash' omits a very useful Option (listed near the beginning),
ie ' -x  Print commands and their arguments as they are executed'.
this option is listed via 'bash -c "help set"' ,
but needs to be inserted into the 'man' file between '-s' & '-D'.
Comment 1 SpanKY gentoo-dev 2004-02-11 21:55:10 UTC
per gentoo-dev mailing list marking this as invalid
Comment 2 Philip Webb 2004-02-11 22:44:14 UTC
'invalid' is not a reponse to anything, just on its own.
perhaps a few additional words of explanation ?
Comment 3 SpanKY gentoo-dev 2004-02-12 06:53:14 UTC
considering you're on the mailing list and you should have seen the final response i didnt feel it was needed

http://article.gmane.org/gmane.linux.gentoo.devel/15819
Comment 4 Philip Webb 2004-02-13 01:13:10 UTC
well, what you said was : "In my opinion, the bash man page is as clear as mud
to someone that hasn't been around Unix/Linux for awhile", which suggests
a willingness to make improvements depending on difficulty, time etc.

i suppose the 'Options' section does say " In addition to the single-character shell  options  documented  in  the description  of  the set builtin command, bash interprets
the following options when it is invoked", so you might argue that adding '-x' there
wb to say the same thing twice. 

however, the description in the 'Set ' section -- "After  expanding each simple
command, display the expanded  value  of PS4, followed by the command
and its expanded arguments" -- is hardly the same as the description given
via 'bash -c "help set"'  -- "Print commands and their arguments as they are executed".
the former does not say anything about executing the commands,
merely displaying them.

so i'ld say something needs to be added somewhere
& the minimal change is the one i originally suggested.
  
Comment 5 SpanKY gentoo-dev 2004-02-13 09:32:21 UTC
i didnt say any of that, i'm not Paul :P

at any rate, like you said, the manpage says that when bash is invoked, it also supports all the things that the builtin command 'set' supports

if we look at 'set', it supports a ton of commands, so copying and pasting all of those to the OPTIONS section is a lot of bloating
Comment 6 Philip Webb 2004-02-15 03:05:08 UTC
well, then you need to add in the Set section
that each command is executed as it is displayed,
which is the difference i pointed out
between what Set says re '-x' & what 'bash -h' says re it.

as things stand, the man page nowhere tells users
that the commands are actually executed,
which well mb the vital thing they need to know.