emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Add shell-quasiquote.


From: David Kastrup
Subject: Re: [PATCH] Add shell-quasiquote.
Date: Wed, 21 Oct 2015 20:24:24 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

"Stephen J. Turnbull" <address@hidden> writes:

> Eli Zaretskii writes:
>
>  > Next, I could see why users on a Posix host might want to execute
>  > some commands with a particular non-default shell.  I don't see why
>  > Emacs packages, perhaps with a sole exception of Tramp, would need
>  > that.
>
> Sometimes it pays to be precise.  All of the OS distributions gave up
> on bash because it didn't quite conform to POSIX (even when invoked in
> POSIX compatibility mode), and that caused bugs in package
> installation and management for packages that used sh scripts rather
> than perl or python.  That's why shells like ash and dash exist.

I think it was more a question of size and startup speed.  bash has a
lot of features beyond those in the POSIX specs, and the main arguments
I saw for replacing bash with dash on systems such as Ubuntu were based
on benchmarks.

This choice led to a lot of fun with people having to clean their shell
scripts from "bashisms", constructs not available in POSIX standards but
provided by bash.  The "function" keyword for shell functions is one of
the most frequent offenders.

-- 
David Kastrup



reply via email to

[Prev in Thread] Current Thread [Next in Thread]