Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!purdue!decwrl!ucbvax!hplabs!hpl-opus!jewett From: jewett@hpl-opus.HP.COM (Bob Jewett) Newsgroups: comp.unix.questions Subject: Re: Changing directories in ksh... Message-ID: <63720001@hpl-opus.HP.COM> Date: 6 Jul 88 04:41:37 GMT References: <5318@dasys1.UUCP> Organization: HP Labs, High Speed Electronics Dept., Palo Alto, CA Lines: 9 > I would simply define a shell function: > down(){ cd $1; ls; } Almost right. If the cd fails, you don't want to do the ls. The (k)shell function I use for this is: down() { cd $1 && /bin/ls -sF ; } Bob Jewett