summaryrefslogtreecommitdiff
path: root/sh.h
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-06-07 16:36:05 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-06-08 01:50:54 +0200
commit7aaf4f2423e2bcabce508e91255de673db50b728 (patch)
treecfdfc247185d7a97fce6f96110fb964f00b766fe /sh.h
parent60b250c267e9ce69f428fd2f0f56a4b1a54f2004 (diff)
downloadksh-master.tar.gz
Add [-w write-file] optionHEADmaster
ksh will write lines to write-file containing information about the status of the shell: after prompt: empty line after command entry: "cmd" followed by command after cwd change: "cwd" followed by new cwd fg is handled specially, printing a new "cmd" line with the original command associated with the job.
Diffstat (limited to 'sh.h')
-rw-r--r--sh.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sh.h b/sh.h
index 222b77c..6cd656d 100644
--- a/sh.h
+++ b/sh.h
@@ -186,6 +186,7 @@ EXTERN uid_t ksheuid; /* effective uid of shell */
EXTERN int exstat; /* exit status */
EXTERN int subst_exstat; /* exit status of last $(..)/`..` */
EXTERN const char *safe_prompt; /* safe prompt if PS1 substitution fails */
+EXTERN int writefd; /* open file descriptor to -w file */
/*
* Area-based allocation built on malloc/free