Is there any way to make "pushd" and "popd" (Bash built-ins) silent? As it is, when the execute, the directory is echoed to the output, making it difficult to use the commands in a script. For example:
OLD_VER=$(pushd /boot; ls kernel-* | sort | head -1; popd) echo $OLD_VER /boot ~ kernel-2.6.22-gentoo-r2 ~ The /boot and the tildes are returned by pushd and popd and mess up the script. There doesn't seem to be any options to turn off the echo off and shopt has nothing in it. Tony -- Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin -- [EMAIL PROTECTED] mailing list

