1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-14 00:19:50 +02:00

use $() instead of backticks.

This commit is contained in:
Werner Koch 2008-11-12 11:28:42 +00:00
parent abaa732d6b
commit df089498d8
2 changed files with 14 additions and 9 deletions

View File

@ -1,3 +1,8 @@
2008-11-12 Werner Koch <wk@g10code.com>
* gpg-agent.texi (Agent Options): Use Posix $() instead of
backticks to avoid rendering problems.
2008-10-13 Werner Koch <wk@g10code.com> 2008-10-13 Werner Koch <wk@g10code.com>
* gpgsm.texi (Certificate Management): Explain hot to delete the * gpgsm.texi (Certificate Management): Explain hot to delete the

View File

@ -51,7 +51,7 @@ utilities.
The usual way to run the agent is from the @code{~/.xsession} file: The usual way to run the agent is from the @code{~/.xsession} file:
@example @example
eval `gpg-agent --daemon` eval $(gpg-agent --daemon)
@end example @end example
@noindent @noindent
@ -65,11 +65,11 @@ test for a running agent. This short script may do the job:
@smallexample @smallexample
if test -f $HOME/.gpg-agent-info && \ if test -f $HOME/.gpg-agent-info && \
kill -0 `cut -d: -f 2 $HOME/.gpg-agent-info` 2>/dev/null; then kill -0 $(cut -d: -f 2 $HOME/.gpg-agent-info) 2>/dev/null; then
GPG_AGENT_INFO=`cat $HOME/.gpg-agent-info` GPG_AGENT_INFO=$(cat $HOME/.gpg-agent-info)
export GPG_AGENT_INFO export GPG_AGENT_INFO
else else
eval `gpg-agent --daemon` eval $(gpg-agent --daemon)
echo $GPG_AGENT_INFO >$HOME/.gpg-agent-info echo $GPG_AGENT_INFO >$HOME/.gpg-agent-info
fi fi
@end smallexample @end smallexample
@ -83,7 +83,7 @@ You should always add the following lines to your @code{.bashrc} or
whatever initialization file is used for all shell invocations: whatever initialization file is used for all shell invocations:
@smallexample @smallexample
GPG_TTY=`tty` GPG_TTY=$(tty)
export GPG_TTY export GPG_TTY
@end smallexample @end smallexample
@ -149,7 +149,7 @@ it from being accidently running in the background. A common way to do
this is: this is:
@example @example
@end example @end example
$ eval `gpg-agent --daemon` $ eval $(gpg-agent --daemon)
@end table @end table
@ -283,8 +283,8 @@ other sessions, this option may be used to write the information into
to be evaluated by a Bourne shell like in this simple example: to be evaluated by a Bourne shell like in this simple example:
@example @example
eval `cat @var{file}` eval $(cat @var{file})
eval `cut -d= -f 1 < @var{file} | xargs echo export` eval $(cut -d= -f 1 < @var{file} | xargs echo export)
@end example @end example
@ -645,7 +645,7 @@ This signal is used for internal purposes.
The usual way to invoke @command{gpg-agent} is The usual way to invoke @command{gpg-agent} is
@example @example
$ eval `gpg-agent --daemon` $ eval $(gpg-agent --daemon)
@end example @end example
An alternative way is by replacing @command{ssh-agent} with An alternative way is by replacing @command{ssh-agent} with