Re: [exim-dev] /bin/rm

Pàgina inicial
Delete this message
Reply to this message
Autor: Tony Finch
Data:  
A: exim-dev
Assumpte: Re: [exim-dev] /bin/rm
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.
--
<fanf@???> <dot@???> 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}}