bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Command substitution reduce spaces even in strings


From: Marc Herbert
Subject: Re: Command substitution reduce spaces even in strings
Date: Wed, 09 Dec 2009 09:10:26 +0000
User-agent: Thunderbird 2.0.0.21 (X11/20090320)

matez@fiz15.jupiter.vein.hu a écrit :
> Short example:

> $ echo $(echo "'alfa  beta'")
> 'alfa beta'
> 
> Instead of 'alfa  beta' with double space.

Always try tracing to understand what is going on:

echo $(set -x ;echo "'alfa  beta'")

++ echo ''\''alfa  beta'\'''


http://www.mpi-inf.mpg.de/~uwe/lehre/unixffb/quoting-guide.html





reply via email to

[Prev in Thread] Current Thread [Next in Thread]