Skip to main content

All Questions

Tagged with
-3 votes
1 answer
96 views

bash -n is a not documented in manpages or info documents [closed]

Even though bash -n is a valid and widely used option, some manpages don't clearly document it in the bash options section, even though it is implemented. It's also not in the GNU Bash Reference ...
bit's user avatar
  • 1,166
1 vote
2 answers
555 views

Getting help on Bash's reserved words

Is there a way to get the information in this link (it's an index with all (?) the keywords) a and within the first level links in the command line with something like man or help?
alias's user avatar
  • 35
1 vote
2 answers
1k views

Accessing function documentation

Is there a way to access docstrings in Bash? How does one include a docstring in a function's definition in Bash? More specifically how do I add and access docstrings to the following function? ...
alias's user avatar
  • 35
0 votes
1 answer
55 views

Where does bash's 'help' builtin source its documentation? [duplicate]

On MacOS, the default bash on the OS is 3.2. If I run help trap it says that if the signal_spec is DEBUG, that the command is run after each command, but the bash manpage says it is run before each ...
jshort's user avatar
  • 218
0 votes
1 answer
627 views

Where to obtain the uidgid file

I was reading /etc/bashrc and saw the following: # By default, we want umask to get set. This sets it for non-login shell. # Current threshold for system reserved uid/gids is 200 # You could check ...
Ben's user avatar
  • 240
3 votes
1 answer
174 views

Is there any offline manuals for special characters used in terminal?

We can find help regarding most commands like echo ,cp, mv, wget using man . But can I find manuals for special characters used for operations like piping(| symbol)? If there's none, is there any ...
Abinash Dash's user avatar
0 votes
3 answers
144 views

How to get help for bash variables use from a command line?

Bash has some special or predefined variables, such as $? and $#. How to know the meaning of those variables use build in command instead of searching online web pages? I have try to use this: ...
lovespring's user avatar
  • 2,101
1 vote
2 answers
1k views

Where is the hash command documentation?

When I type man hash it shows me man builtin. I'm trying to understand this line: hash -r 2>/dev/null || true What hash -r does and what it returns. Context: export PATH="$PWD/bin:$PATH" hash -...
pabvid's user avatar
  • 33
3 votes
2 answers
3k views

What do square brackets in bash case statement mean?

http://ss64.com/bash/case.html SHOWS case word in [ [(] pattern [| pattern]...) command-list ;;]... esac What are square brackets indicating? Other websites omit them (i.e. no [[(] etc.) http://www....
Steve Blumenfeld's user avatar
68 votes
2 answers
64k views

Understand `compgen` builtin command

From help compgen: $ help compgen compgen: compgen [-abcdefgjksuv] [-o option] [-A action] [-G globpat] [-W wordlist] [-F function] [-C command] [-X filterpat] [-P prefix] [-S suffix] [word] ...
Pandya's user avatar
  • 25.5k
12 votes
3 answers
8k views

How to document my custom bash functions and aliases?

Problem: I have multiple bash functions and aliases. I can't remember all of them off the top of my head, so I usually end up opening my .bash_functions and .bash_aliases files to find what I need. ...
mhulse's user avatar
  • 1,849
7 votes
3 answers
3k views

Where can I find some good documentation for bash printf?

man printf, info printf and printf --help are all pretty useless to me; I want an explanation of the FORMAT options. For example, I could use: printf '%s\n' foo bar and get output: foo bar From ...
evilsoup's user avatar
  • 7,017
5 votes
2 answers
377 views

How to match name exactly with Bash's `help` builtin?

It seems the Bash built-in help command help does some really strange globbing: help read shows the documentation for read, readarray and readonly. help rea? shows only the documentation for read. ...
l0b0's user avatar
  • 53k
5 votes
1 answer
568 views

Where can I find historical documentation for bash?

Are there any sources for documentation for old versions of some GNU software, in this case particularly bash? I have a embedded system that is running bash 3.00.16, and I'm trying to do some shell ...
Fake Name's user avatar
  • 519
20 votes
4 answers
14k views

What is the "caller" command?

I'm running Ubuntu 10.10 with openbox running on top. I noticed today a command called caller, however there is no man page, it does not respond to any input (or --help) and whereis doesn't find it. ...
user avatar

15 30 50 per page