Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Nested quotes



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: signature.asc
Description: PGP signature



Messages sorted by: Reverse Date, Date, Thread, Author