diff options
author | Alexander Hall <halex@cvs.openbsd.org> | 2014-07-11 16:41:17 +0000 |
---|---|---|
committer | Alexander Hall <halex@cvs.openbsd.org> | 2014-07-11 16:41:17 +0000 |
commit | 71b08b927819f499f0028576448eea9c7282954b (patch) | |
tree | a7bc092bdcb5c56816534a2886600a6b9c39cf61 /etc/ksh.kshrc | |
parent | 4636ee4284e11cbc773cd582734ac9ff92fdefce (diff) |
revert last commit
eval seems to be needed for reaching the aliases which otherwise aren't
available from within functions...
Diffstat (limited to 'etc/ksh.kshrc')
-rw-r--r-- | etc/ksh.kshrc | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/etc/ksh.kshrc b/etc/ksh.kshrc index b183a2536de..78f71456c81 100644 --- a/etc/ksh.kshrc +++ b/etc/ksh.kshrc @@ -1,5 +1,5 @@ : -# $OpenBSD: ksh.kshrc,v 1.17 2014/07/09 15:41:16 halex Exp $ +# $OpenBSD: ksh.kshrc,v 1.18 2014/07/11 16:41:16 halex Exp $ # # NAME: # ksh.kshrc - global initialization for ksh @@ -98,15 +98,15 @@ case "$-" in alias stripe='label "$USER@$HOST ($tty) - $PWD"' alias istripe='ilabel "$USER@$HOST ($tty)"' - function wftp { ilabel "ftp $*"; "ftp" "$@"; istripe; } - function wcd { \cd "$@" && stripe; } + function wftp { ilabel "ftp $*"; "ftp" "$@"; eval istripe; } + function wcd { \cd "$@" && eval stripe; } function wssh { local rc "ssh" "$@" rc=$? - istripe - stripe + eval istripe + eval stripe return $rc } function wtelnet @@ -114,8 +114,8 @@ case "$-" in local rc "telnet" "$@" rc=$? - istripe - stripe + eval istripe + eval stripe return $rc } function wrlogin @@ -123,8 +123,8 @@ case "$-" in local rc "rlogin" "$@" rc=$? - istripe - stripe + eval istripe + eval stripe return $rc } function wsu @@ -132,8 +132,8 @@ case "$-" in local rc "su" "$@" rc=$? - istripe - stripe + eval istripe + eval stripe return $rc } alias su=wsu @@ -142,8 +142,8 @@ case "$-" in alias ssh=wssh alias telnet=wtelnet alias rlogin=wrlogin - stripe - istripe + eval stripe + eval istripe PS1=$PROMPT fi alias quit=exit |