* Running command in environment variable with space
@ 2002-03-12 17:07 Michael Schaap
2002-03-12 17:14 ` Vincent Lefevre
0 siblings, 1 reply; 3+ messages in thread
From: Michael Schaap @ 2002-03-12 17:07 UTC (permalink / raw)
To: zsh-users
Hi,
I'm trying to do something like:
% blah='gvim -f'
% $blah
but this fails with
zsh: command not found: gvim -f
The same thing works fine in bash.
I'm not sure if this is a bug or a feature, but is there a way to run a
command with options specified in one environment variable?
Thanks,
- Michael
--
I always wondered about the meaning of life. So I looked it
up in the dictionary under "L" and there it was - the meaning
of life. It was not what I expected. - Dogbert
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Running command in environment variable with space
2002-03-12 17:07 Running command in environment variable with space Michael Schaap
@ 2002-03-12 17:14 ` Vincent Lefevre
2002-03-12 17:34 ` Michael Schaap
0 siblings, 1 reply; 3+ messages in thread
From: Vincent Lefevre @ 2002-03-12 17:14 UTC (permalink / raw)
To: zsh-users
On Tue, Mar 12, 2002 at 18:07:47 +0100, Michael Schaap wrote:
> I'm not sure if this is a bug or a feature, but is there a way to run a
> command with options specified in one environment variable?
Try $=blah
--
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/> - 100%
validated (X)HTML - Acorn Risc PC, Yellow Pig 17, Championnat International
des Jeux Mathématiques et Logiques, TETRHEX, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Running command in environment variable with space
2002-03-12 17:14 ` Vincent Lefevre
@ 2002-03-12 17:34 ` Michael Schaap
0 siblings, 0 replies; 3+ messages in thread
From: Michael Schaap @ 2002-03-12 17:34 UTC (permalink / raw)
To: zsh-users
At 18:14 12-3-2002, Vincent Lefevre wrote:
>On Tue, Mar 12, 2002 at 18:07:47 +0100, Michael Schaap wrote:
> > I'm not sure if this is a bug or a feature, but is there a way to run a
> > command with options specified in one environment variable?
>
>Try $=blah
Thanks, that does the trick.
(This also pointed me to SH_WORD_SPLIT, which is what I was looking for,
but missed the first time I looked through the zshoptions manpage. (No,
really!))
- Michael
--
I always wondered about the meaning of life. So I looked it
up in the dictionary under "L" and there it was - the meaning
of life. It was not what I expected. - Dogbert
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-03-12 17:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-12 17:07 Running command in environment variable with space Michael Schaap
2002-03-12 17:14 ` Vincent Lefevre
2002-03-12 17:34 ` Michael Schaap
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).