All Questions
Tagged with documentation bash
16 questions
-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 ...
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?
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?
...
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 ...
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 ...
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 ...
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:
...
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 -...
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....
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]
...
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.
...
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 ...
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.
...
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 ...
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.
...