putting something into single quotes in a bash script
Petrus de Calguarium
pgueckel at gmail.com
Thu Feb 3 00:41:33 UTC 2011
Patrick O'Callaghan wrote:
> Of course they do. They are entirely different things. The first one is
> for quoting strings which might contain Shell metacharacters. The second
> is to execute a command and insert its output as the value of the
> string, e.g.
>
> ls -l `find ~/.kde`
>
> This is equivalent to:
>
> ls -l $(find ~/.kde)
>
> but the latter is a more recent form (it has the advantage of being
> nestable, which the older form isn't).
Thank you. That explains it well.
I will read up a bit, too.
More information about the users
mailing list