Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: _call_program (and possibly other hooks) or opt_args quoting prob lem.
- X-seq: zsh-workers 17208
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: _call_program (and possibly other hooks) or opt_args quoting prob lem.
- Date: Tue, 21 May 2002 16:17:38 +0000
- In-reply-to: <1021916607.3408.10.camel@xxxxxxxxxxxxxxxxxxxxx>
- In-reply-to: <15594.512.412597.296070@xxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <6134254DE87BD411908B00A0C99B044F02E89AE4@xxxxxxxxxxxxxxxxxxxxxxx> <1020520164035.ZM22369@xxxxxxxxxxxxxxxxxxxxxxx> <1021916607.3408.10.camel@xxxxxxxxxxxxxxxxxxxxx> <15594.512.412597.296070@xxxxxxxxxxxxxxxxxx>
On May 20, 9:43pm, Borsenkow Andrej wrote:
} Subject: Re: _call_program (and possibly other hooks) or opt_args quoting
}
} > I'm not sure what you mean by "parameter value as it appears" -- is the
} > word "value" out of place in that phrase?
}
} Once more:
}
} user enters
}
} $PWD/a\ b
}
} as the "value" of option -d. When this is finally passed to a program
} for execution, shell expands $PWD so program actually sees (remove
} quotes) "/home/bor/test/a b". This is "real" value of option -d.
[...]
} I am sorry if it is confusing but I really do not understand what you do
} not understand ... it seems pretty clear to me :-)
I get it now. The word "parameter" was what confused me -- zsh's use of
"parameter" to refer to shell variables like $PWD has always been a pain
in the brain. Anyway, I couldn't tell whether you were talking about the
value of the parameter $PWD, or the presence of a parameter expansion in
the command-line arguments, or what.
On May 21, 10:14am, Sven Wischnowsky wrote:
}
} I'm not sure if we should commit this patch, because, as was already
} pointed out, ${(e)...} on a string as it is reported now should give
} one the needed expansion. With the patch that would become ${(Qe)...}.
}
} Any opinions?
Having looked at Andrej's example with _files, I think you should commit
the patch. It would appear that the number of cases where we'd need to
insert uses of ${(e)...} without the patch, exceeds the number of cases
where we'd need to insert ${(Qe)...} with it.
However, that opinion is based on very superficial analysis, so if anyone
thinks otherwise ...
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author