Browse Source

don't throw away exit status of various commands; ok sthen@ dcoppa@ halex@

OPENBSD_4_8
otto 14 years ago
parent
commit
8378994e98
1 changed files with 13 additions and 1 deletions
  1. +13
    -1
      src/etc/ksh.kshrc

+ 13
- 1
src/etc/ksh.kshrc View File

@ -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


Loading…
Cancel
Save