Gentoo Archives: gentoo-user

From: Jonathan Callen <abcd@g.o>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: FIXED 3D
Date: Fri, 09 Oct 2009 02:22:11
Message-Id: 4ACE9E4D.9080006@gentoo.org
In Reply to: Re: [gentoo-user] Re: FIXED 3D by Neil Bothwick
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Neil Bothwick wrote:
5 > Note you can also nest commands when using $(), which you can't do with
6 > backticks.
7
8 You can nest commands with ``, it's just less intuitive; each of the
9 following are equivalent:
10
11 echo $(echo $(echo $(echo $(echo foo))))
12 echo $(echo $(echo $(echo `echo foo`)))
13 echo $(echo $(echo `echo \`echo foo\``))
14 echo $(echo `echo \`echo \\\`echo foo\\\`\``)
15 echo `echo \`echo \\\`echo \\\\\\\`echo foo\\\\\\\`\\\`\``
16
17 Yes, that is a *lot* of backslashes in the last one, which is why no one
18 nests that far with `` (personally, I always use $() instead of ``, but
19 that's mainly because I switched my escape for GNU screen from ^A to `).
20
21 - --
22 Jonathan
23 -----BEGIN PGP SIGNATURE-----
24 Version: GnuPG v2.0.11 (GNU/Linux)
25 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
26
27 iEYEARECAAYFAkrOnkwACgkQOypDUo0oQOqo4QCaA5iPSgyefVeK/clv3Tmb4bZh
28 QHcAnRbc/wufJ7NZlVfy7f3sACQm1ZoY
29 =ewZb
30 -----END PGP SIGNATURE-----

Replies

Subject Author
Re: [gentoo-user] Re: FIXED 3D "Jesús Guerrero" <i92guboj@×××××.es>
Re: [gentoo-user] Re: FIXED 3D Neil Bothwick <neil@××××××××××.uk>