|
- What does $# mean in bash? - Ask Ubuntu
Furthermore, when you use bash -c, behavior is different than if you run an executable shell script, because in the latter case the argument with index 0 is the shell command used to invoke it
- shell - Bash regex =~ operator - Stack Overflow
What is the operator =~ called? I'm not sure it has a name The bash documentation just calls it the =~ operator Is it only used to compare the right side against the left side? The right side is considered an extended regular expression If the left side matches, the operator returns 0, and 1 otherwise Why are double square brackets required when running a test? Because =~ is an operator of
- bash - What is the purpose of in a shell command? - Stack Overflow
Furthermore, you also have || which is the logical or, and also ; which is just a separator which doesn't care what happend to the command before
- Bash test: what does =~ do? - Unix Linux Stack Exchange
I realize you said “read the bash man pages” but at first, I thought you meant read the man pages within bash At any rate, man bash returns a huge file, which is 4139 lines (72 pages) long
- bash - Shell equality operators (=, ==, -eq) - Stack Overflow
If not quoted, it is a pattern match! (From the Bash man page: "Any part of the pattern may be quoted to force it to be matched as a string ") Here in Bash, the two statements yielding "yes" are pattern matching, other three are string equality:
- What does set -e mean in a Bash script? - Stack Overflow
By default, Bash does not do this This default behavior is exactly what you want if you are using Bash on the command line you don't want a typo to log you out! But in a script, you really want the opposite If one line in a script fails, but the last line succeeds, the whole script has a successful exit code That makes it very easy to miss
- arguments - What is $@ in Bash? - Stack Overflow
I reckon that the handle $@ in a shell script is an array of all arguments given to the script Is this true? I ask because I normally use search engines to gather information, but I can't google f
- What does the -e do in a bash shebang? - Unix Linux Stack Exchange
All the bash command line switches are documented in man bash -e Exit immediately if a pipeline (which may consist of a single simple command), a subshell command enclosed in parentheses, or one of the commands executed as part of a command list enclosed by braces (see SHELL GRAMMAR above) exits with a non-zero status The shell does not exit if the command that fails is part of the command
|
|
|