Browse Source

fix function wcd so "cd x && y" returns an appropriate error when x does not exist

OPENBSD_3_0
marc 23 years ago
parent
commit
393e4823a7
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/etc/ksh.kshrc

+ 2
- 2
src/etc/ksh.kshrc View File

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


Loading…
Cancel
Save