help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Using Emacs Lisp for script writing


From: Cecil Westerhof
Subject: Re: Using Emacs Lisp for script writing
Date: Tue, 22 Dec 2009 21:49:59 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux)

pjb@informatimago.com (Pascal J. Bourguignon) writes:

> Cecil Westerhof <Cecil@decebal.nl> writes:
>> Works like a charm. I made it:
>>     #!/usr/bin/env bash
>
> IMO, there's higher probability that /bin/bash be present than /usr/bin/env.
> And even higher probability that /bin/sh be present.
>
> Since you're not using any bash feature in the script, you could as
> well go for the sure case, and use #!/bin/sh.

I have once been on a system where the shells were in a different
directory. (I think it was a BSD system.) As I understand it
/usr/bin/env should be on every system, as a real file or a link. That
is why I use /usr/bin/env. But properly sh would be better instead of
bash. There are systems where bash is not installed.

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof


reply via email to

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