Search notes:

bash

Bash stands for Bourne-Again Shell.
fc
Bash: for
hash
history
Bash: if (See also Bash: conditional constructs).
Bash - shopt
Bash: while
Bash: scripts
Bash: conditional constructs
bash - variables

Relationship to /bin/sh

On some systems /bin/sh is a symlink to /bin/bash.
On such systems, if bash is invoked via sh or /bin/sh, bash tries to follow the startup behaviour of older versions of sh, but also to conform to the POSIX standard.

TODO

programmable completion

Embed hexadecimal characters in strings

A string literal in the form $'…' allows to embed characters in hexadecimal form:
echo   $'The first character of the alphabet is \x41'
The built-in echo command has the special -e flag which also allows to embed hexadecimal characters.
echo -e "The first character of the alphabet is \x41"

See also

Bash command line editing
Bash builtins
Bash: quoting
redirection
/bin/bash
bash.exe is bash for the Windows Subsystem for Linux.

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Linux/sh...', 1740444106, '3.139.85.51', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Linux/shell/bash/index(107): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78