Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Variable Expansion
- X-seq: zsh-users 8656
- From: Andrey Borzenkov <arvidjaar@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Variable Expansion
- Date: Sun, 3 Apr 2005 15:42:35 +0400
- Cc: Matthias Berndt <Berndt.Matthias@xxxxxx>
- In-reply-to: <20050403132351.0204dbfd@localhost>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20050403132351.0204dbfd@localhost>
-----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-----
Messages sorted by:
Reverse Date,
Date,
Thread,
Author