emacs-devel
[Top][All Lists]
Advanced

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

Re: simple useful functions


From: Chad Brown
Subject: Re: simple useful functions
Date: Fri, 29 Oct 2010 13:56:00 -0700

On Oct 29, 2010, at 1:47 PM, Andreas Schwab wrote:

> "Drew Adams" <address@hidden> writes:
> 
>> `.' works in the Bourne-shell family.
>> `source' works in the C-shell family.
>> `bash' and `zsh' support both.
> 
> Which makes "." more portable.

Which seems to be largely pointless, since the goal of the function 
is to interact with a specific script.  

If the function doesn't want to detect the shell (ideally, parsing the 
interpreter from the shebang line, perhaps it'd be better just to
name the function(s) something like `source-sh-script' or 
`source-csh-script'.

*Chad
..who has used login shells that didn't support `printenv', and once
even used emacs as his login shell to see if it would work.



reply via email to

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