[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] How to understand the blank space here
From: |
suvayu ali |
Subject: |
Re: [Help-bash] How to understand the blank space here |
Date: |
Tue, 27 Dec 2011 17:32:44 +0100 |
Hi Lina,
On Mon, Dec 26, 2011 at 16:02, lina <address@hidden> wrote:
> Hi,
>
> $ echo \"{Those, words, are, quoted}\"
> "{Those, words, are, quoted}"
>
> I have a space after ,
>
> echo \"{Those,words,are,quoted}\"
> "Those" "words" "are" "quoted"
>
As far as I understand, since you are escaping the double quotes, brace
expansion happens in the second case. Whereas in the first case the
whole string is being echoed as is.
> Just wonder why the space there changed things,
>
I believe its the brace expansion syntax. See the "Brace Expansion"
section in `man bash`.
> Thanks with best regards,
>
Hope this helps.
--
Suvayu
Open source is the future. It sets us free.