diff options
author | stefanf <stefanf@FreeBSD.org> | 2006-06-15 07:00:49 +0000 |
---|---|---|
committer | stefanf <stefanf@FreeBSD.org> | 2006-06-15 07:00:49 +0000 |
commit | 40616c7bb389aaa1e23907cad897503212b8e51e (patch) | |
tree | ffddd6afca1624ba622d55a632b321308ad597fc /bin/sh/var.h | |
parent | 1689a257a3225150b95ea8241663b4784ac60e9f (diff) | |
download | FreeBSD-src-40616c7bb389aaa1e23907cad897503212b8e51e.zip FreeBSD-src-40616c7bb389aaa1e23907cad897503212b8e51e.tar.gz |
Implement the PS4 variable which is defined by the POSIX User Portability
Utilities option. Its value is printed at the beginning of the line if tracing
(-x) is active. PS4 defaults to the string "+ " which is compatible with the
old behaviour to always print "+ ".
We still need to expand variables in PS1, PS2 and PS4.
PR: 46441 (part of)
Submitted by: schweikh
Obtained from: NetBSD
Diffstat (limited to 'bin/sh/var.h')
-rw-r--r-- | bin/sh/var.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/sh/var.h b/bin/sh/var.h index 4eb5dc1..c1f994b 100644 --- a/bin/sh/var.h +++ b/bin/sh/var.h @@ -74,6 +74,7 @@ extern struct var vpath; extern struct var vppid; extern struct var vps1; extern struct var vps2; +extern struct var vps4; #ifndef NO_HISTORY extern struct var vhistsize; #endif @@ -91,6 +92,7 @@ extern struct var vhistsize; #define pathval() (vpath.text + 5) #define ps1val() (vps1.text + 4) #define ps2val() (vps2.text + 4) +#define ps4val() (vps4.text + 4) #define optindval() (voptind.text + 7) #ifndef NO_HISTORY #define histsizeval() (vhistsize.text + 9) |