Zsh Mailing List Archive
Messages sorted by:
Re: strictly literal command lines?
- X-seq: zsh-users 14528
- From: Michael Hernandez <sequethin@xxxxxxxxx>
- To: Eric De Mund <ead@xxxxxxxxx>
- Subject: Re: strictly literal command lines?
- Date: Tue, 3 Nov 2009 16:00:54 -0500
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=xtRm1Bs4ftp/+P5O3LqkdF/NHk3MffwwVdoJRir1M1g=; b=lUJ4IAybym8+ubMYHmhptYhJ/1VSl1jA2/Macq+YTPjrf3E4QzliaNE5RVJbA7Z1+U CHtq5+DtsocJhzQy46RXHz0LtEIP0grbV3Qd/MszpwrVSD50Wo7iydZ1ZjbMaOjjE23y 7CRLC4yJHseXa8E7lVMEtA/ZpOk3RKNG/d7c4=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=dkP5R4VlD2g6yoCmQNzxpS7KVcaU/RgCI06l+BjZJx5Lo6M5XGLT4J4rZKiT/v5R/3 bdzYcbpw8gmyINnGLkN7HUPH52Cpf+e4BPTLi84twWDQzCwTr8wtGhDTN5UFWsqDlFZI j5ho9J12MP+PfOnwwpjFq/uMV6Osf3Y4Q6OY0=
- In-reply-to: <87k4y79xxp.fsf@xxxxxxxxx>
- List-help: <mailto:email@example.com>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:firstname.lastname@example.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <87k4y79xxp.fsf@xxxxxxxxx>
On Nov 3, 2009, at 3:05 PM, Eric De Mund wrote:
I'd like to be able to issue a command without any quotation
or with only one quotation character at the beginning. Is this
in zsh (ignore my line breaks here, done manually for legibility)?
% wget http://www.nytimes.com/2009/11/04/world/europe/
In this particular example, the "&" is the problem for me. I want it
I can envision two kinds of solutions right off the bat.
1. Is there a "literal-to-end-of-line" character? If the single quote
(') were such a character, the command would look like this:
% wget 'http://www.nytimes.com/2009/11/04/world/europe/
2. Or is there an option to make a command line completely literal,
akin to noglob but stronger, in order to handle ampersands (&)s and
anything and everything else, too:
% literal wget http://www.nytimes.com/2009/11/04/world/europe/
Or am I missing some way of accomplishing this that already exists in
Eric De Mund
Of course I read your email too fast, and I see you already know about
noglob. Sorry about that. I'll go back to lurking now...
Messages sorted by: