Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!godot!harvard!seismo!brl-tgr!gwyn From: gwyn@brl-tgr.ARPA (Doug Gwyn ) Newsgroups: net.bugs.usg Subject: Errors in Sep 84 SUN Message-ID: <5534@brl-tgr.ARPA> Date: Wed, 31-Oct-84 22:28:40 EST Article-I.D.: brl-tgr.5534 Posted: Wed Oct 31 22:28:40 1984 Date-Received: Fri, 2-Nov-84 06:12:39 EST Distribution: net Organization: Ballistic Research Lab Lines: 37 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 }