summaryrefslogtreecommitdiff
path: root/bin/ksh/sh.h
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2005-02-21 16:01:59 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2005-02-21 16:01:59 +0000
commitdb2e4bb5db676bf608aa795e0fa98f8966524246 (patch)
tree5e6894038eb283e82fd27142e2f7d2409b898745 /bin/ksh/sh.h
parenta2b28142f37c5eb4a8a173d9b92c4c338c87b109 (diff)
Set \u in prompt expansion to the right value, while avoiding getpw* calls,
which might be very inconvenient when the yp server is not available. ok deraadt@ millert@
Diffstat (limited to 'bin/ksh/sh.h')
-rw-r--r--bin/ksh/sh.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ksh/sh.h b/bin/ksh/sh.h
index 9b017c48d8c..a0e1269e715 100644
--- a/bin/ksh/sh.h
+++ b/bin/ksh/sh.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sh.h,v 1.25 2004/12/22 17:14:34 millert Exp $ */
+/* $OpenBSD: sh.h,v 1.26 2005/02/21 16:01:58 otto Exp $ */
/*
* Public Domain Bourne/Korn shell
@@ -77,6 +77,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 char username[]; /* username for \u prompt expansion */
/*
* Area-based allocation built on malloc/free