[Leaplist] Advanced Bash Scripting Guide (ABSG)

Bryan J. Smith b.j.smith at ieee.org
Thu Oct 9 10:48:28 EDT 2008


As always, if you want to really get into using the CLI,
the Advanced Bash Scripting Guide (ABSG) is a good start:  
  http://tldp.org/LDP/abs/html/  

I've found irregularities between bash 2.05, 3.0 and 3.1,
although bash 3.1 should do everything the ABSG covers
(including handling spaces in filenames in a for loop
expansion proper).  Just a note in case you run into issues.

For those of us that deal with AIX, HP/UX and select others
that ship ksh as their default, it helps to write more
"pure" POSIX Bourne shell (sh) for portability, and not use
bash or ksh extensions.  Of course, even POSIX sh varies from
legacy AT&T sh at times, so your mileage will vary.


-- 
Bryan J Smith        Professional, Technical Annoyance
b.j.smith at ieee.org  http://www.linkedin.com/in/bjsmith
------------------------------------------------------
I'm a PC, but Linux -- Windows: Life Without Firewalls

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the Leaplist mailing list