From ArchWiki
Jump to: navigation, search

Bashisms in install scripts

Looking at it seems that at least currently pacman is configured to explicitly use bash as the "scriptlet-shell" which I am guessing is what executes install scripts. So I am guessing that having bashisms in those shouldn't stop me from linking /bin/sh to dash. I'll be trying this out and report back, or maybe if someone more knowledgeable comes across this they can clarify. Manulari (talk) 19:58, 24 September 2014 (UTC)

Yes, scriptlet-shell is shell to use by default to execute pacman install scripts. I think Arch devs and maintainers give up to enforce sh on devs and cover their sh missteps and gone with the flow of bash. sh was replaced by bash in scriptlet-shell there somewhere in 2013 or 2014. In 2011-2013 I used DASH as daily driver for sh and started to catch bashisms around there. There all the way trend, there is too many bashisms now in my system. Too many to be possible to use DASH by default. So DASH now to special use-cases and small installations.PiroXiline (talk) 12:39, 6 September 2016 (UTC)