mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-13 11:42:21 +00:00
sh.1: correct doc on format used by ${.sh.command} (re: a959a352
)
It actually uses the same format as xtrace, which is *not* always shellquoted and eval-safe.
This commit is contained in:
parent
0a343244c1
commit
6e1e9b738b
1 changed files with 11 additions and 4 deletions
|
@ -1573,8 +1573,11 @@ When processing a
|
|||
.B DEBUG
|
||||
trap, this variable contains the current command line
|
||||
that is about to run.
|
||||
Each argument is shell-quoted as necessary
|
||||
so that the value is safe for being evaluated by the shell.
|
||||
The value is in the same format as the output generated by the
|
||||
.B xtrace
|
||||
option (minus the preceding
|
||||
.B PS4
|
||||
prompt).
|
||||
.TP
|
||||
.B .sh.edchar
|
||||
This variable contains the value of the keyboard character
|
||||
|
@ -7542,10 +7545,14 @@ then
|
|||
will be executed before each command.
|
||||
The variable
|
||||
.B .sh.command
|
||||
will contain the shell-quoted arguments of the current command line
|
||||
will contain the current command line
|
||||
when
|
||||
.I action\^
|
||||
is running.
|
||||
is running, in the same format as the output generated by the
|
||||
.B xtrace
|
||||
option (minus the preceding
|
||||
.B PS4
|
||||
prompt).
|
||||
If the exit status of the trap is
|
||||
.B 2
|
||||
the command will not be executed.
|
||||
|
|
Loading…
Reference in a new issue