On 2/11/13 2:25 PM, Bruce Korb wrote: >> /tmp >> $ echo "$PS1" >> \w\n\$ >> /tmp >> $ mkdir -p ZZ/a/b/c >> /tmp >> $ pushd ZZ >> /tmp/ZZ /tmp >> /tmp/ZZ >> $ pushd a >> /tmp/ZZ/a /tmp/ZZ /tmp >> /tmp/ZZ/a >> $ pushd b/c >> /tmp/ZZ/a/b/c /tmp/ZZ/a /tmp/ZZ /tmp >> /tmp/ZZ/a/b/c >> $ popd /var/tmp >> /tmp/ZZ/a/b/c /tmp/ZZ/a /tmp/ZZ >> /tmp/ZZ/a/b/c >> $ popd /var/tmp >> /tmp/ZZ/a/b/c /tmp/ZZ/a >> /tmp/ZZ/a/b/c >> $ > > It is behaving as if it were seeing the "-0" option.
It's unspecified behavior. popd doesn't take any `non-option' arguments. As soon as you specify one, you can't really expect to know what will happen without experimentation or reading the source. /var/tmp gets translated to the equivalent of -0 (if you're curious, it's because `/' isn't `+' and the default directory index is 0). It should probably be an error instead. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/