From: Roman Perepelitsa <roman.perepelitsa@gmail.com>
To: Ray Andrews <rayandrews@eastlink.ca>
Cc: zsh-users@zsh.org
Subject: Re: why is eval needed?
Date: Sat, 19 Nov 2022 18:10:51 +0100 [thread overview]
Message-ID: <CAN=4vMp1DetCXi31fXLjxrqNVQ3S-xvLPekeAczKuF8WNzy6XA@mail.gmail.com> (raw)
In-Reply-To: <fda15801-21cb-4916-daae-b816c73f1ab0@eastlink.ca>
On Sat, Nov 19, 2022 at 6:03 PM Ray Andrews <rayandrews@eastlink.ca> wrote:
>
> test:local:5: not valid in this context: -L
The original code you've posted doesn't generate this error:
% local level='-L 2'
% tree $level
tree: Missing argument to -L option.
This is as expected. The same as here:
% tree '-L 2'
tree: Missing argument to -L option.
I can get "not valid in this context" error with this:
% local level -L
local: not valid in this context: -L
You must be doing something differently compared to what you've posted.
Roman.
next prev parent reply other threads:[~2022-11-19 17:11 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-19 14:34 Ray Andrews
2022-11-19 14:43 ` Roman Perepelitsa
2022-11-19 17:02 ` Ray Andrews
2022-11-19 17:10 ` Roman Perepelitsa [this message]
2022-11-19 18:02 ` Clinton Bunch
2022-11-19 18:18 ` Roman Perepelitsa
2022-11-19 16:48 ` Stephane Chazelas
2022-11-19 19:12 ` Ray Andrews
2022-11-19 19:50 ` Lawrence Velázquez
2022-11-19 22:21 ` Ray Andrews
2022-11-20 8:55 ` Stephane Chazelas
2022-11-20 13:47 ` Ray Andrews
2022-11-20 15:08 ` Stephane Chazelas
2022-11-20 16:27 ` Ray Andrews
2022-11-20 20:16 ` Stephane Chazelas
2022-11-20 22:31 ` Bart Schaefer
2022-11-21 2:13 ` Ray Andrews
2022-11-20 22:47 ` Ray Andrews
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='CAN=4vMp1DetCXi31fXLjxrqNVQ3S-xvLPekeAczKuF8WNzy6XA@mail.gmail.com' \
--to=roman.perepelitsa@gmail.com \
--cc=rayandrews@eastlink.ca \
--cc=zsh-users@zsh.org \
/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).