De-bashing Debian
Posted Jun 2, 2010 1:42 UTC (Wed) by
giraffedata (subscriber, #1954)
In reply to:
De-bashing Debian by lab
Parent article:
De-bashing Debian
Gcc has the -ansi option to support trial and error development of ANSI-only C programs. Why doesn't Bash have a similar thing?
man bash:
--posix Change the behavior of bash where the default operation differs from the POSIX standard to match the standard (posix mode).
That's not what that is. It affects behaviors where something is valid in both POSIX and Bash but means something different, but it does not affect behavior where something is valid in Bash and not valid at all in POSIX. I.e. it doesn't force a program to fail just because it exploits a bashism. That's what gcc -ansi is.
(
Log in to post comments)