[Top][All Lists]
[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.
- simple useful functions, Tak Ota, 2010/10/28
- simple useful functions, Stephen J. Turnbull, 2010/10/29
- Re: simple useful functions, Tak Ota, 2010/10/29
- RE: simple useful functions, Drew Adams, 2010/10/29
- Re: simple useful functions, Andreas Schwab, 2010/10/29
- RE: simple useful functions, Drew Adams, 2010/10/29
- Re: simple useful functions, Andreas Schwab, 2010/10/29
- Re: simple useful functions,
Chad Brown <=
- RE: simple useful functions, Drew Adams, 2010/10/29
- RE: simple useful functions, Stephen J. Turnbull, 2010/10/30
- Re: simple useful functions, Thierry Volpiatto, 2010/10/30
Re: simple useful functions, Andreas Schwab, 2010/10/29