Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#310872: zsh can't be a ksh replacement (can't trap ERR).
- X-seq: zsh-workers 21287
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Christophe Martin <schplurtz@xxxxxxx>, Clint Adams <schizo@xxxxxxxxxx>, 310872@xxxxxxxxxxxxxxx
- Subject: Re: Bug#310872: zsh can't be a ksh replacement (can't trap ERR).
- Date: Fri, 27 May 2005 14:19:06 +0000
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: <42971795.8090005@xxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <200505261638.SAA09610@xxxxxxxxxxxxxxxxx> <20050526191520.GA30061@xxxxxxxxxxx> <1050527012028.ZM21361@xxxxxxxxxxxxxxxxxxxxxxx> <42971795.8090005@xxxxxxx>
On May 27, 2:50pm, Christophe Martin wrote:
} Subject: Re: Bug#310872: zsh can't be a ksh replacement (can't trap ERR).
}
} Bart Schaefer a écrit :
} >
} > A possible workaround would be
} >
} > (( $signals[(I)ERR] )) || alias -g ERR=ZERR
}
} But, If i keep zsh as ksh
} I have to rewrite every script to put this workaround in.
No, you just have to put the above in /etc/zshenv, which is read by all
instances of zsh, whether script or interactive.
} So, for this particular problem of trap ERR, there are only problems
} in using zsh as a ksh
That's not the only incompatibility, by a long shot. Don't try scripts
using namerefs or discipline functions, for example.
} (By the way, what are the platform with OS
} SIGERR ? And do some ksh run on them ?)
UNICOS, according to the Zsh FAQ. I have no idea whether ksh has been
ported to that.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author