News for hackers. Stuff that matters.
Re:Shell Script Best Practices, from a decade of scripting t... by blueflow on Thursday October 27, 2022 @05:56AM (#33355406)
POSIX sucks when shells aren't implementing it correctly. POSIX says that PS1 expansion needs to support at least the bang ('!') expansion and the regular parameter expansion ('$' and '${'), but i found that several kinds of almquist shells don't support that even when they are explicitly POSIX-compliant, dash included.

Bash in --posix mode does that perfectly.

There are no comments on this comment yet.