diff options
author | Jim Meyering <meyering@redhat.com> | 2012-03-26 07:38:27 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2012-03-26 07:38:37 +0200 |
commit | a4d14d3533099c5c8c47be491fa8fc62ecdc40bd (patch) | |
tree | 221d1927fb9d3f7798b943d6bdac2dd3cc26047a /doc | |
parent | 488172c499dd8edf84f44cbab3de5d6f75dd722e (diff) | |
download | coreutils-a4d14d3533099c5c8c47be491fa8fc62ecdc40bd.tar.xz |
doc: use $(...), not `...` in documentation and comments
* doc/coreutils.texi (dircolors invocation, Examples of expr):
(shred invocation, seq invocation): Use $(...), not `...`.
* src/mv.c (do_move): Likewise, in a comment.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/coreutils.texi | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi index 392024986..510abb903 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -7474,7 +7474,7 @@ terminal for color output from @command{ls} (and @command{dir}, etc.). Typical usage: @example -eval "`dircolors [@var{option}]@dots{} [@var{file}]`" +eval "$(dircolors [@var{option}]@dots{} [@var{file}])" @end example If @var{file} is specified, @command{dircolors} reads it to determine which @@ -9131,7 +9131,7 @@ The intended use of this is to shred a removed temporary file. For example: @example -i=`mktemp` +i=$(mktemp) exec 3<>"$i" rm -- "$i" echo "Hello, world" >&3 @@ -12222,7 +12222,7 @@ Here are a few examples, including quoting for shell metacharacters. To add 1 to the shell variable @code{foo}, in Bourne-compatible shells: @example -foo=`expr $foo + 1` +foo=$(expr $foo + 1) @end example To print the non-directory part of the file name stored in @@ -16308,7 +16308,7 @@ If you want hexadecimal integer output, you can use @command{printf} to perform the conversion: @example -$ printf '%x\n' `seq 1048575 1024 1050623` +$ printf '%x\n' $(seq 1048575 1024 1050623) fffff 1003ff 1007ff |