From 393e4823a75b85bab9d92a9fe316f7b561c0644b Mon Sep 17 00:00:00 2001 From: marc <> Date: Mon, 30 Apr 2001 18:24:21 +0000 Subject: [PATCH] fix function wcd so "cd x && y" returns an appropriate error when x does not exist --- src/etc/ksh.kshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/etc/ksh.kshrc b/src/etc/ksh.kshrc index 2b073906..e05dd2da 100644 --- a/src/etc/ksh.kshrc +++ b/src/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" "$@"