From: Simon Ruderich <simon@ruderich.org>
To: Zsh Users <zsh-users@zsh.org>
Subject: Re: Nested quotes
Date: Tue, 24 Nov 2015 08:53:01 +0100 [thread overview]
Message-ID: <20151124075301.GA11884@ruderich.org> (raw)
In-Reply-To: <20151124073627.GA14441@linux.vnet.ibm.com>
[-- Attachment #1: Type: text/plain, Size: 485 bytes --]
On Tue, Nov 24, 2015 at 08:36:27AM +0100, Dominik Vogt wrote:
> Maybe I'm just thick this morning, but how do you "nest" double
> quotes here:
>
> $ FILE="foo bar"
> $ echo "$(readlink -f $FILE)"
> readlink: extra operand `bar'
Works fine for me without any extra quotes in zsh. In shell/bash
you need more quotes:
echo "$(readlink -f "$file")"
Regards
Simon
--
+ privacy is necessary
+ using gnupg http://gnupg.org
+ public key id: 0x92FEFDB7E44C32F9
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2015-11-24 7:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-24 7:36 Dominik Vogt
2015-11-24 7:53 ` Simon Ruderich [this message]
2015-11-24 9:37 ` Peter Stephenson
2015-11-24 9:51 ` Dominik Vogt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151124075301.GA11884@ruderich.org \
--to=simon@ruderich.org \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).