mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +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
|
.B DEBUG
|
||||||
trap, this variable contains the current command line
|
trap, this variable contains the current command line
|
||||||
that is about to run.
|
that is about to run.
|
||||||
Each argument is shell-quoted as necessary
|
The value is in the same format as the output generated by the
|
||||||
so that the value is safe for being evaluated by the shell.
|
.B xtrace
|
||||||
|
option (minus the preceding
|
||||||
|
.B PS4
|
||||||
|
prompt).
|
||||||
.TP
|
.TP
|
||||||
.B .sh.edchar
|
.B .sh.edchar
|
||||||
This variable contains the value of the keyboard character
|
This variable contains the value of the keyboard character
|
||||||
|
@ -7542,10 +7545,14 @@ then
|
||||||
will be executed before each command.
|
will be executed before each command.
|
||||||
The variable
|
The variable
|
||||||
.B .sh.command
|
.B .sh.command
|
||||||
will contain the shell-quoted arguments of the current command line
|
will contain the current command line
|
||||||
when
|
when
|
||||||
.I action\^
|
.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
|
If the exit status of the trap is
|
||||||
.B 2
|
.B 2
|
||||||
the command will not be executed.
|
the command will not be executed.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue