Bash-hackers - bash-hackers.org
General Information:
Latest News:
The mapfile builtin command - [Bugs] 19 Aug 2013 | 01:09 pm
Synopsis mapfile [-n COUNT] [-O ORIGIN] [-s COUNT] [-t] [-u FD] [-C CALLBACK] [-c QUANTUM] [ARRAY] readarray [-n COUNT] [-O ORIGIN] [-s COUNT] [-t] [-u FD] [-C CALLBACK] [-c QUANTUM] [ARRAY] Descri...
Bash changes - [Other builtins and keywords] 4 Aug 2013 | 12:53 pm
This article is an incomplete overview of changes to Bash over the time. Not all changes are listed, just the ones interesting for normal scripting. The overviews are categorized by topic and inside, ...
Bash Hackers Wiki Frontpage - rm all the ":NEW:" 4 Aug 2013 | 12:50 pm
The Bash-Hackers Wiki This wiki is intended to hold documentations of any kind about the GNU Bash. The main motivation was to provide human-readable documentation and information to not force users to...
Lock your script (against parallel run) - Eh I'm working on a script involving locks ATM. Hopefully I'll have time to fix these up a bit. 4 Aug 2013 | 01:19 am
Why lock? Sometimes there's the need to ensure that a script is only executed one time. Imagine some cronjob to do something very important, which will fail or corrupt data if it accidently runs twic...
Bash Hackers Wiki Frontpage - Hide the "Most wanted" section. Stats are over a year old. 4 Aug 2013 | 01:06 am
The Bash-Hackers Wiki This wiki is intended to hold documentations of any kind about the GNU Bash. The main motivation was to provide human-readable documentation and information to not force users to...
Arrays - [Bugs] More bugs fixed!! 21 Jul 2013 | 05:04 am
Purpose An array is a parameter that holds mappings from keys to values. Arrays are used to store a collection of parameters into a parameter. Arrays (in any programming language) are a useful and co...
The C-style for-loop - [Bits analyzer] When performing recursive arithmetic it's more efficient to move an assignment out of the recursive expression ... 15 Jul 2013 | 08:50 am
Synopsis for (( <EXPR1> ; <EXPR2> ; <EXPR3> )); do <LIST> done # as a special case: without semicolon after ((...)) for (( <EXPR1> ; <EXPR2> ; <EXPR3> )) do <LIST> done # alternative, historical an...
Quotes and escaping - [ANSI C like strings] Re-order table to match the spec. Added \". Note that \E is non-standard. 7 Jul 2013 | 03:33 pm
Quoting and escaping is really an important way to influence the way, Bash treats your input. There are three recognized types: * per-character escaping using a backslash: \$stuff * weak quoting with...
The C-style for-loop - [Description] while/for loop not 100% the same because of continue - thanks Martin Kealey 22 Jun 2013 | 04:55 pm
Synopsis for (( <EXPR1> ; <EXPR2> ; <EXPR3> )); do <LIST> done # as a special case: without semicolon after ((...)) for (( <EXPR1> ; <EXPR2> ; <EXPR3> )) do <LIST> done # alternative, historical an...
The exit builtin command - created 22 Jun 2013 | 04:48 pm
Synopsis exit [N] Description The exit command terminates the current shell (or script). If N is given, the return code to the parent process is set to N. If not, the returned status the the statu...