* Variable Expansion
@ 2005-04-03 11:23 Matthias Berndt
2005-04-03 11:42 ` Andrey Borzenkov
0 siblings, 1 reply; 2+ messages in thread
From: Matthias Berndt @ 2005-04-03 11:23 UTC (permalink / raw)
To: zsh-users
Greetings,
I think my problem is quite simple, but I'm unable to find a solution.
It is based on a bash script and I use the following lines:
CLOCKPARAMS="${CLOCKPARAMS} --utc"
hwclock --hctosys ${CLOCKPARAMS}
The result is:
CLOCKPARAMS=' --utc'
hwclock --hctosys ' --utc' # --> hwclock error
How do I prevent zsh from inserting the quotes in the hwclock-command? I
played with some expansionmodifiers - such a 'Q' - but I can't get it to
work.
Thanks
Matthias Berndt
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Variable Expansion
2005-04-03 11:23 Variable Expansion Matthias Berndt
@ 2005-04-03 11:42 ` Andrey Borzenkov
0 siblings, 0 replies; 2+ messages in thread
From: Andrey Borzenkov @ 2005-04-03 11:42 UTC (permalink / raw)
To: zsh-users; +Cc: Matthias Berndt
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sunday 03 April 2005 15:23, Matthias Berndt wrote:
> Greetings,
>
> I think my problem is quite simple, but I'm unable to find a solution.
> It is based on a bash script and I use the following lines:
>
> CLOCKPARAMS="${CLOCKPARAMS} --utc"
> hwclock --hctosys ${CLOCKPARAMS}
>
> The result is:
>
> CLOCKPARAMS=' --utc'
> hwclock --hctosys ' --utc' # --> hwclock error
>
> How do I prevent zsh from inserting the quotes in the hwclock-command? I
> played with some expansionmodifiers - such a 'Q' - but I can't get it to
> work.
>
setopt shwordsplit
or
hwclock --hctosys ${=CLOCKPARAMS}
or
emulate sh
- -andrey
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCT9a5R6LMutpd94wRAlhGAKCICfPrJX0Fa/v11JBmtCsPjwnMkgCgrgo2
OTVb55Y2cQBe/+Netftqn/8=
=cuAr
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-04-03 11:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-03 11:23 Variable Expansion Matthias Berndt
2005-04-03 11:42 ` Andrey Borzenkov
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).