Filenames and Pathnames in Shell: How to do it Correctly

Thu, 2 Jun 2016 13:19:12 +1000

Andrew Pam <xanni [at] glasswings.com.au>

Andrew Pam
http://www.dwheeler.com/essays/filenames-in-shell.html

"Many Bourne shell scripts (as run by bash, dash, ash, ksh, and so on) do not
handle filenames and pathnames correctly on Unix-like/POSIX systems. Some shell
programming books teach it wrongly, and even the POSIX standard sometimes gets
it wrong."

Programming secure shell scripts is more difficult than it may appear, thanks
to unfortunate design choices.  See also the companion article proposing some
possible improvements:
http://www.dwheeler.com/essays/fixing-unix-linux-filenames.html

Share and enjoy,
                *** Xanni ***

Comment via email

Home E-Mail Sponsors Index Search About Us