Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
export -f problem
- X-seq: zsh-workers 16211
- From: Borsenkow Andrej <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- To: ZSH Workers Mailing List <zsh-workers@xxxxxxxxxx>
- Subject: export -f problem
- Date: Fri, 02 Nov 2001 22:01:34 +0300
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Mandrake has startup function that looks like:
mc ()
{
... define some suff ...
}
[[ $SHELL = "/bin/bash" ]] && export -f mc
If your login shell is bash and you call zsh you get:
[root@localhost root]# zsh
mc () {
mkdir -p $HOME/.mc/tmp 2> /dev/null
chmod 700 $HOME/.mc/tmp
MC=$HOME/.mc/tmp/mc-$$
/usr/bin/mc -P "$@" > "$MC"
cd "`cat $MC`"
rm -i -f "$MC"
unset MC
}
because export -f mc just prints out mc() code.
While the condition above is wrong (it should test for BASH_VERSION) -
should we either make zsh set SHELL or be more compatible with export -f?
-andrej
Messages sorted by:
Reverse Date,
Date,
Thread,
Author