zsh-users
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@ifh.de>
To: zsh-users@math.gatech.edu (Zsh users list),
	"David R. Favor" <dfavor@austin.ibm.com>
Subject: Re: [Fwd: Parameter Expansion questions]
Date: Mon, 17 Aug 1998 18:08:00 +0200	[thread overview]
Message-ID: <199808171608.SAA26311@hydra.ifh.de> (raw)
In-Reply-To: ""David R. Favor""'s message of "Mon, 17 Aug 1998 10:17:59 MST." <35D849A7.4EB5F516@austin.ibm.com>

"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 <pws@ifh.de>       Tel: +39 50 844536
WWW:  http://www.ifh.de/~pws/
Gruppo Teorico, Dipartimento di Fisica
Piazza Torricelli 2, 56100 Pisa, Italy



      parent reply	other threads:[~1998-08-17 16:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-08-17 15:17 David R. Favor
1998-08-17 15:44 ` Bruce Stephens
1998-08-17 15:52 ` vi wrapper -> vim + "set path" Sven Guckes
1998-08-17 16:08 ` Peter Stephenson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199808171608.SAA26311@hydra.ifh.de \
    --to=pws@ifh.de \
    --cc=dfavor@austin.ibm.com \
    --cc=zsh-users@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).