Errors in Sep 84 SUN
Doug Gwyn <gwyn>
gwyn at brl-tgr.ARPA
Thu Nov 1 13:28:40 AEST 1984
The September 1984 UNIX System Support and Update News contains
the following errors.
Page 5:
In the DMD terminfo, there should be a comma after lines#70.
The line beginning with = should be preceded by il1.
Page 7:
Where it says type ".filename", that should be ". filename"
where filename is the name of the file containing the functions.
The pushd() function will not work with the Bourne shell
originally distributed with Release 2.0, since a failed "cd"
will abort the function. My rewrite of these two functions is:
DIRSTACK=... # for pushd, popd
pushd(){
DIRSTACK=`pwd`" $DIRSTACK"
if (cd $1)
then cd $1 >&-
echo $DIRSTACK
else popd
fi
}
popd(){
set $DIRSTACK
if [ $# -ge 2 ]
then cd $1
echo $1
shift
DIRSTACK="$*"
fi
}
More information about the Net.bugs.usg
mailing list