Size: 792
Comment:
|
Size: 399
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
[[Anchor(faq82)]] == Why is $(...) preferred over `...` (backticks)? == For several reasons: * It makes nesting command substitutions easier. Compare: {{{ x=$(grep $(dirname "$path") file) x=`grep \`dirname "$path"\` file`}}} It just gets uglier and uglier after two levels. * It's easier to read. * Newbies who see {{{$()}}} don't normally press the wrong keys. On the other hand, newbies who see {{{`cmd`}}} often mangle it into {{{'cmd'}}} because they don't know what a backtick is. * Backslashes (\) inside backticks are handled in a non-obvious manner. ''(Example desired!)'' Inside {{{$()}}}, there are no such surprises. The only time backticks are preferred is when writing code for the oldest Bourne shells, which do not know about {{{$()}}}. |
Heya. The name is senaida pruitt. At the moment i live in hollywood. I am turning 50. i and my sister go to the special academy situated in exeter. i am self employed as a curator. my hobby is tea tasting. My papas name is jeff and he is a musician. My mother works as a manicure.<<BR>><<BR>> <<BR>><<BR>> Also visit my web-site; [[http://homesafetydot.com/security-lighting/|homesafetydot.com]] |
Heya. The name is senaida pruitt. At the moment i live in hollywood. I am turning 50. i and my sister go to the special academy situated in exeter. i am self employed as a curator. my hobby is tea tasting. My papas name is jeff and he is a musician. My mother works as a manicure.
Also visit my web-site; homesafetydot.com