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: # NAME:
# ksh.kshrc - global initialization for ksh # ksh.kshrc - global initialization for ksh
@ -102,27 +102,39 @@ case "$-" in
wcd () { \cd "$@" && eval stripe; } wcd () { \cd "$@" && eval stripe; }
wssh () wssh ()
{ {
local rc
"ssh" "$@" "ssh" "$@"
rc=$?
eval istripe eval istripe
eval stripe eval stripe
return $rc
} }
wtelnet () wtelnet ()
{ {
local rc
"telnet" "$@" "telnet" "$@"
rc=$?
eval istripe eval istripe
eval stripe eval stripe
return $rc
} }
wrlogin () wrlogin ()
{ {
local rc
"rlogin" "$@" "rlogin" "$@"
rc=$?
eval istripe eval istripe
eval stripe eval stripe
return $rc
} }
wsu () wsu ()
{ {
local rc
"su" "$@" "su" "$@"
rc=$?
eval istripe eval istripe
eval stripe eval stripe
return $rc
} }
alias su=wsu alias su=wsu
alias cd=wcd alias cd=wcd


Loading…
Cancel
Save