On Tue, 6 Sep 2005, Philip Hazel wrote:

> On Tue, 6 Sep 2005, Daniel Tiefnig wrote:
>
> > But that's easy, you can just run "unalias -a" to turn of all aliases.
>
> Do all shells support that? In particular, do all /bin/sh shells support
> that? I'm afraid I'm cautious.

It's a required feature of the POSIX shell, but /bin/sh is not always a
POSIX shell. For example, Solaris still uses the classic Bourne shell for
/bin/sh (complete with BOURNEGOL source) and puts its POSIX shell in
/usr/bin/ksh.

> One would also need unset -f for functions and there doesn't seem to be
> a -a for that.

The best way to clean the environment is env -i.

Tony.
-- 
<[EMAIL PROTECTED]>   <[EMAIL PROTECTED]>   http://dotat.at/   ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}

-- 
## List details at http://www.exim.org/mailman/listinfo/exim-dev Exim details 
at http://www.exim.org/ ##

Reply via email to