Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
quoting arguments in a script
- X-seq: zsh-users 13328
- From: denis <mu_kuh@xxxxxxxx>
- To: "zsh-users@xxxxxxxxxx" <zsh-users@xxxxxxxxxx>
- Subject: quoting arguments in a script
- Date: Tue, 14 Oct 2008 21:28:39 +0200
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.de; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:Date:From:To:Subject:Message-Id:X-Mailer:Mime-Version:Content-Type:Content-Transfer-Encoding; b=aKkggkj2VUMnqcwgjze7gCy2zxrTZK8NtTwwwVN1eXb/Em77pET2wpOUVUxSVUMY8a9pfZ64WZDMmKsKkycpTecmTktb1jcSaGHNAmQC/OO3NanQlCtXM3RuGKYjp+OokC1H1ScTaa0vE5RoP7YVy+Ch1GV6EElbUoZ4PC6EKJk= ;
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Hi,
I'm looking for a way to quote strings in a zsh script.
Consider the following example script which should be able to be
used exactly like the original grep:
#!/bin/zsh
emacsclient -e "(grep \"grep -nH $@\")"
This is not working because $@ breaks the string. Replacing $@
with $* won't be enough either.
Maybe it is possible to use the builtin function quote-line (M-')
for this?
Thanks in advance.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author