summaryrefslogtreecommitdiff
path: root/etc/ksh.kshrc
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2010-04-26 09:04:16 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2010-04-26 09:04:16 +0000
commitbf1f63d7ad7b6b672a6c98d6f1090c6493a91424 (patch)
treeb0ad39e732b2be4436680974f59b2b3a67e0902a /etc/ksh.kshrc
parent19b613f30bc55b25331d2f2f7ac8519250560b40 (diff)
don't throw away exit status of various commands; ok sthen@ dcoppa@ halex@
Diffstat (limited to 'etc/ksh.kshrc')
-rw-r--r--etc/ksh.kshrc14
1 files changed, 13 insertions, 1 deletions
diff --git a/etc/ksh.kshrc b/etc/ksh.kshrc
index 2acb6299754..10f30367484 100644
--- a/etc/ksh.kshrc
+++ b/etc/ksh.kshrc
@@ -1,5 +1,5 @@
:
-# $OpenBSD: ksh.kshrc,v 1.14 2009/08/07 09:05:24 martynas Exp $
+# $OpenBSD: ksh.kshrc,v 1.15 2010/04/26 09:04:15 otto Exp $
#
# NAME:
# ksh.kshrc - global initialization for ksh
@@ -102,27 +102,39 @@ case "$-" in
wcd () { \cd "$@" && eval stripe; }
wssh ()
{
+ local rc
"ssh" "$@"
+ rc=$?
eval istripe
eval stripe
+ return $rc
}
wtelnet ()
{
+ local rc
"telnet" "$@"
+ rc=$?
eval istripe
eval stripe
+ return $rc
}
wrlogin ()
{
+ local rc
"rlogin" "$@"
+ rc=$?
eval istripe
eval stripe
+ return $rc
}
wsu ()
{
+ local rc
"su" "$@"
+ rc=$?
eval istripe
eval stripe
+ return $rc
}
alias su=wsu
alias cd=wcd