Software > Scripting Languages >
(on Wikipedia)
https://www.gnu.org/software/bash/
A ubiquitous shell. The default for almost all Linux distributions.
Random notes on this software.
Note that you will find a lot of example and working code on GitHub:
- /dead/bash
- /dead/bash-windows
- /live/bash
-
- Specific for Windows Subsystem for Linux
-
- sh code usually works under Bash.
--
- 2018-10-10 - I kept using Babun for some time, but I switched to Windows Subsystem for Linux and VirtualBox.
- 2016-03-28 - 4.2.53(2) on Slackware 14.1 i486
- 2016-03-26 - 4.3.11(1) on Lubuntu 14.04.4 LTS
- 2016-01-30 - 4.3.42(5) on Git on Windows 2.7.4 64-bit
-
2016-01-29 - 3.1.20(4)-release on Git on Windows Git-1.9.5-preview20141217
- (earlier than this)
- This was so damned old at the time that I had to jump through hoops to do scripting under this restriction.
-
2009-04-21 - 3.1.17 on (distribution not recorded)
- It's the standard, but I bloody well hate how it works. It's so clumsy and GNU.
-
Bash has come with every distribution I have ever used.
Resources ∞
- http://www.labbookpages.co.uk/software/bashTips.html
- https://devmanual.gentoo.org/tools-reference/bash/index.html
- https://linuxconfig.org/bash-scripting-tutorial
- https://tldp.org/LDP/abs/html/refcards.html
-
https://web.archive.org/web/20160220075324/http://pablotron.org/software/bash_tweaks/
- 2017-02-07 - down, reportedly migrating to a new server
Notes ∞
Configuration ∞
- $HOME/.inputrc
- $HOME/.bashrc is the best way.
-
$HOME/.bash_profile only works for the raw TTY console, but not in X (a terminal).
Builtins ∞
2017-11-05 - A random note from 2009-03-29 which I apparently can't reproduce on Devuan-1.0.0-jessie-i386-DVD
man 1 builtins
Last updated 2020-08-24 at 17:15:08
slightly tidied up