About 1,530,000 results
Open links in new tab
  1. bash - Shell equality operators (=, ==, -eq) - Stack Overflow

    399 What is the difference between =, == and -eq in shell scripting? Is there any difference between the following?

  2. bash - What are the special dollar sign shell variables ... - Stack ...

    Sep 14, 2012 · $! is the PID of the most recent background command. $0 is the name of the shell or shell script. Most of the above can be found under Special Parameters in the Bash …

  3. What's the difference between [ and [[ in Bash? - Stack Overflow

    Make sure you have the #!/bin/bash shebang line for your script if you use double brackets. See also Bash FAQ - "What is the difference between test, [ and [ [ ?" Bash Practices - Bash Tests …

  4. scripting - Meaning of $? (dollar question mark) in shell scripts ...

    Aug 1, 2019 · In Bash, when you hit enter, a fork + exec + wait happens like above, and bash then sets $? to the exit status of the forked process. Note: for built-in commands like echo, a …

  5. 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 …

  6. What does -z mean in Bash? - Stack Overflow

    Aug 7, 2013 · What does -z mean in Bash? [duplicate] Asked 12 years, 5 months ago Modified 1 year, 6 months ago Viewed 500k times

  7. bash - What do $? $0 $1 $2 mean in a shell script? - Stack Overflow

    I often come across $?, $0, $1, $2, etc in shell scripting. I know that $? returns the exit status of the last command: echo "this will return 0" echo $? But what do the others do? …

  8. bash - What is the purpose of "&&" in a shell command? - Stack …

    Oct 27, 2021 · $ command one && command two the intent is to execute the command that follows the && only if the first command is successful. This is idiomatic of Posix shells, and not …

  9. Is bash a programming language? - Stack Overflow

    Feb 24, 2015 · According to man bash, Bash is a "sh-compatible command language". Then, we can say a "command language" is "a programming language through which a user …

  10. bash - Difference between 'if -e' and 'if -f' - Stack Overflow

    Apr 18, 2012 · 60 $ man bash -e file True if file exists. -f file True if file exists and is a regular file. A regular file is something that isn't a directory, symlink, socket, device, etc.