[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: shellcheck, bashism's and one liners.



Hi Tim.

What errors do you get if you use sh instead of bash?  On Debian systems
sh should be a symbolic link to dash.  On Debian dash is preferred for
system shell scripts (perhaps even required now) and I use it for my
personal scripts unless there is some need to use bash instead.  I still
use bash for my login shell.

I've used shellcheck to point me in the right direction and figure that
if dash runs the script without errors then it's close enough to POSIX
compatible for my needs.  I don't anticipate my scripts needing to run
on some ancient Unix shell.

- Nate

-- 
"The optimist proclaims that we live in the best of all
possible worlds.  The pessimist fears this is true."
Web: https://www.n0nb.us
Projects: https://github.com/N0NB
GPG fingerprint: 82D6 4F6B 0E67 CD41 F689 BBA6 FB2C 5130 D55A 8819

Attachment: signature.asc
Description: PGP signature


Reply to: