Changing directories in ksh...

Bob Jewett jewett at hpl-opus.HP.COM
Wed Jul 6 14:41:37 AEST 1988


> 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



More information about the Comp.unix.questions mailing list