From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23105 invoked from network); 17 Aug 1998 16:20:25 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 17 Aug 1998 16:20:25 -0000 Received: (from list@localhost) by math.gatech.edu (8.9.1/8.9.1) id MAA24505; Mon, 17 Aug 1998 12:06:11 -0400 (EDT) Resent-Date: Mon, 17 Aug 1998 12:06:03 -0400 (EDT) Message-Id: <199808171608.SAA26311@hydra.ifh.de> X-Authentication-Warning: hydra.ifh.de: pws owned process doing -bs To: zsh-users@math.gatech.edu (Zsh users list), "David R. Favor" Subject: Re: [Fwd: Parameter Expansion questions] In-reply-to: ""David R. Favor""'s message of "Mon, 17 Aug 1998 10:17:59 MST." <35D849A7.4EB5F516@austin.ibm.com> Date: Mon, 17 Aug 1998 18:08:00 +0200 From: Peter Stephenson Resent-Message-ID: <"o0LNK1.0.6-5.gJ5sr"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1726 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu "David R. Favor" wrote: > Here's a larger fragment of the function I'm using, that is a wrapper > around vi to check several directories for a file to edit. What is the > recommended way to accomplish this in zsh, hopefully while retaining > ksh compatibility also? I would like to get rid of the $shell_type > nonsense and the ${=editpath} syntax in the loop. If ksh compatibility is your main aim, the recommended way is to put [[ -n $ZSH_VERSION ]] && emulate ksh at the top and write it in standard ksh. This is supposed to remove all your problems. If it still doesn't work, then we want to know about it. This sets all sorts of options you probably don't even want to know about if you just want ksh compatibility. (By the way, I think you had option setting wrong back there somewhere: it's `set -o OPTION' or `setopt OPTION', not `export OPTION', which is why some of your attempts didn't work.) -- Peter Stephenson Tel: +39 50 844536 WWW: http://www.ifh.de/~pws/ Gruppo Teorico, Dipartimento di Fisica Piazza Torricelli 2, 56100 Pisa, Italy