On Wed, 5 Dec 2007, Robert Dodier wrote:
> On 12/5/07, Jaime Villate <villate at fe.up.pt> wrote:
>> d=`pwd`
>> pushd $WORKING_DIRECTORY
>> ...
>> popd
>>
>> By the following:
>> d=`pwd`
>> cd $WORKING_DIRECTORY
>> ...
>> cd $d
> Does cd work, and pushd does not? That is kind of puzzling;
> I would expect either both work or both do not, since both are
> not program names (they are recognized by the shell).
Ubuntu's /bin/sh is not bash. I suspect it doesn't understand pushd, popd.
Andrey