diff --git a/twander.1 b/twander.1 index ea9a42c..39812b6 100644 --- a/twander.1 +++ b/twander.1 @@ -2904,7 +2904,7 @@ .ft C \" courier .nf - TODAY = [`date`] + TODAY = [\`date\`] .fi .ft \" revert @@ -2919,7 +2919,7 @@ Notice that Execution Variables are delimited by backticks, not single-quotes. .IP \(bu 4 -If you have something like \fC[`program`]\fP in a Command Definition, +If you have something like \fC[\`program\`]\fP in a Command Definition, it will be replaced with any text that "program" produces as it runs. That text will have any trailing newline stripped. @@ -2927,14 +2927,14 @@ Suppose you want to populate an Execution Variable with a program that returns multiple lines of text. You'll need to strip all the newlines out of the output in that case. To do this, you can use a second form -of an Execution Variable: \fC[`-program`]\fP. The leading minus sign +of an Execution Variable: \fC[\`-program\`]\fP. The leading minus sign tells \fCtwander\fP to strip all newlines when doing the replacement. For example, let's define a command that lists all the files in the current directory: .ft C \" courier .nf - a mycommand echo "[`-ls`]" # We need the double-quotes + a mycommand echo "[\`-ls\`]" # We need the double-quotes # to make echo work right .fi .ft \" revert @@ -3110,7 +3110,7 @@ # Execution Variables XTERM = xterm -l -e - m MyMore [XTERM] [$PAGER] [`-ls *.txt`] + m MyMore [XTERM] [$PAGER] [\`-ls *.txt\`] .fi .ft \" revert @@ -3332,7 +3332,7 @@ .ft C \" courier .nf - d setdate SomeDateCommand {PROMPT:Set Date To: ===>[`date`]} + d setdate SomeDateCommand {PROMPT:Set Date To: ===>[\`date\`]} .fi .ft \" revert @@ -3423,7 +3423,6 @@ variable will be "executed" each time the Command Definition in which it is referenced is run. - .IP \(bu 4 Similarly, Built-In Variables are resolved .B on each command invocation, @@ -3841,7 +3840,7 @@ .ft C \" courier .nf - export HOSTNAME=`hostname` + export HOSTNAME=\`hostname\` .fi .ft \" revert @@ -4084,7 +4083,12 @@ .ft C \" courier .nf - L DirList [VSHELL] 'UsrResp={PROMPT:Directory Of What?} ; ls -l $UsrResp | [$PAGER]' + # Note that the line below is split for printing purposes + # In an actual configuration file, this needs to all be on one line + + L DirList [VSHELL] 'UsrResp={PROMPT:Directory Of What?} ; + ls -l $UsrResp | [$PAGER]' + .fi .ft \" revert @@ -4677,4 +4681,4 @@ .ft \" revert .SH DOCUMENT REVISION INFORMATION -$Id: twander.1,v 1.122 2005/02/04 23:22:50 tundra Exp $ \ No newline at end of file +$Id: twander.1,v 1.123 2005/02/04 23:37:43 tundra Exp $ \ No newline at end of file