diff options
author | Marco S Hyman <marc@cvs.openbsd.org> | 2001-04-30 18:24:22 +0000 |
---|---|---|
committer | Marco S Hyman <marc@cvs.openbsd.org> | 2001-04-30 18:24:22 +0000 |
commit | c0c7e2b3fc0abb6faad0fd43e95d2e0fe760a207 (patch) | |
tree | eae92485577fef4b2b19134abc8c99a2582b67f4 /etc | |
parent | ac08c1b0d0e313611fcf2497520f0c3816522e00 (diff) |
fix function wcd so "cd x && y" returns an appropriate error when x does not exist
Diffstat (limited to 'etc')
-rw-r--r-- | etc/ksh.kshrc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/ksh.kshrc b/etc/ksh.kshrc index 2b07390648d..e05dd2da4ad 100644 --- a/etc/ksh.kshrc +++ b/etc/ksh.kshrc @@ -1,5 +1,5 @@ : -# $OpenBSD: ksh.kshrc,v 1.6 2000/09/21 17:24:41 todd Exp $ +# $OpenBSD: ksh.kshrc,v 1.7 2001/04/30 18:24:21 marc Exp $ # # NAME: # ksh.kshrc - global initialization for ksh @@ -99,7 +99,7 @@ case "$-" in alias istripe='ilabel "$USER@$HOST ($tty)"' wftp () { ilabel "ftp $*"; "ftp" $*; eval istripe; } - wcd () { \cd "$@"; eval stripe; } + wcd () { \cd "$@" && eval stripe; } wssh () { "ssh" "$@" |