On Sun, Feb 19, 2017 at 02:12:35PM -0800, Joe Zeff wrote: > On 02/19/2017 05:22 AM, Mike Wright wrote: > > dir="$1" > > mkdir -p "$dir" > > cd "$dir" <------ never executes > I'm not sure why this doesn't work but you're doing it the hard way. > > mkdir -p $1 > cd $1 > > is much simpler, and might work better. Unless $1 contains any spaces, in which case the mkdir will create two or more directories; e.g.: $ p="a b" $ mkdir $p $ ls -l total 8 drwxrwxr-x. 2 davem davem 4096 Feb 20 09:07 a drwxrwxr-x. 2 davem davem 4096 Feb 20 09:07 b $ -- "You may not work around any technical limitations in the software" -- Windows Vista license _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx