RE: pwd as first command changes script behavior

2011-09-01 Thread Quiring, Sam
as first command changes script behavior Hi Sam, Quiring, Sam wrote: > #! /bin/bash > pwd > echo $_ > > #! /bin/bash > echo $_ > pwd > > The first one displays: > /home/windriver/changes/NexS-235r1/with-camera > pwd > > The second one displays: > ./app

Re: pwd as first command changes script behavior

2011-09-01 Thread Jonathan Nieder
Hi Sam, Quiring, Sam wrote: > #! /bin/bash > pwd > echo $_ > > #! /bin/bash > echo $_ > pwd > > The first one displays: > /home/windriver/changes/NexS-235r1/with-camera > pwd > > The second one displays: > ./apply.sh > /home/windriver/changes/NexS-235r1/with-camera That's what $_ is advertised t