Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh adding single quotes as it pleases
- X-seq: zsh-users 14432
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: zsh adding single quotes as it pleases
- Date: Thu, 24 Sep 2009 15:09:08 +0100
- In-reply-to: <60479.153.98.68.197.1253799130.squirrel@xxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <64763.153.98.68.197.1253790454.squirrel@xxxxxxxxxxxxxxxxxxx> <200909241128.n8OBSEkH008973@xxxxxxxxxxxxxx> <60479.153.98.68.197.1253799130.squirrel@xxxxxxxxxxxxxxxxxxx>
"Jerry Rocteur" wrote:
> I was running a java command line which works well when you type it into the
> command line. As soon as you put it in a
> script it works as if the double quotes were not there .. I run it
> from a Perl script and it works well.
It sounds to me like you probably need an eval in there.
eval <command> $line
but I can't really tell from that description. That will handle the
quotes. In particular, if what you are doing in Perl is something like
system("<command> $line");
then that's pretty much what's happening.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
Tel: +44 (0)1223 692070 Cambridge Silicon Radio Limited
Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK
Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
Messages sorted by:
Reverse Date,
Date,
Thread,
Author