Shell - Reserved Words

> Procedural Languages > Bash Shell and (Unix|Linux) Utilities (XCU)

1 - About

Reserved words in bash.

This words are recognized as reserved when:

  • unquoted
  • and
    • either the first word of a simple command
    • or the third word of a case or for command.
Advertising

3 - List

  • ! : logical negation
  • case
  • do
  • done
  • elif
  • else
  • esac
  • fi
  • for
  • function
  • if
  • in
  • select
  • then
  • until
  • while
  • {
  • }
  • time
  • [[
  • ]]
Advertising