From: "Alain Caron" <alainc@nortel.ca>
To: zsh-users@math.gatech.edu
Subject: How to turn sh_word_split on for a single command
Date: 15 Jan 1997 14:27 EST [thread overview]
Message-ID: <199701151943.OAA11477@euclid.skiles.gatech.edu> (raw)
In my .zprofile, I have to use a command similar to this one in order
to set-up my environment.
eval `some_command | command_filter`
My problem is that some_command is written for ksh/sh and I do not
have the sh_word_split option set. This causes the above command to
fail.
It complains with the following error message:
zsh: no such file or directory: /usr/bin/X11/resize -u
which is clearly because of the sh_word_split option unset.
As a work-around, I did the following:
setopt shwordsplit
eval `some_command | command_filter`
unsetopt shwordsplit
which works fine. The problem with this is that it is not elegant and
can be potentially dangerous if ever change my mind about having
shwordsplit option unset. I know I could query the original state of
the option and only to this setopt/unsetopt if the option was
originally unset.
By looking at the man page, I thought I could use something like this:
eval ${=$(some_command | command_filter)}
but it fails the same way.
I am using zsh 3.0.2 on a HP 715 with HP-UX 9.05. Zsh has been
compiled with the native HP cc compiler.
Regards,
Alain Caron
alainc@nortel.ca
next reply other threads:[~1997-01-15 19:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-01-15 19:27 Alain Caron [this message]
1997-01-16 8:44 ` Andrej Borsenkow
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=199701151943.OAA11477@euclid.skiles.gatech.edu \
--to=alainc@nortel.ca \
--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).