|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|
Re: [PLUG] Building a command from variables in BASH
|
Sorry, should have proof-read before sending. Two corrections:
On Mon, 20 Sep 2010, Paul L. Snyder wrote:
> Or, we could have quoting go the other way, using 'q', which adds a level
> of quoting (using backquotes):
>
> zsh% g ${(q)A}
> First: -3\ 4- Second: --
That's backSLASHes, obviously.
> And for a last example, we can perform sensible splitting based on the
> quoting inside the envvar:
>
> zsh% D="8 \"9 0\""
> zsh% g ${(z)D}
> First: -8- Second: -"9 0"-
> zsh% g ${(Q)${(z)D}
> First: -9' Second: -9 0-
That final output should be
First: -8- Second: -9 0-
Paul
___________________________________________________________________________
Philadelphia Linux Users Group -- http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|