jonab@sdcrdcf.UUCP (Jonathan Biggar) (11/17/84)
System: rn version 4.1 Bug #: 21 Priority: LOW Subject: filexp (the shell script) doesn't do ~/ or ~ right. Index: Configure From: steven@mcvax.UUCP (Steven Pemberton) Description: There is a little shell script spit out by Configure to do tilde (~) substitution on systems that don't have csh. Unfortunately, it doesn't do ~ or ~/* correctly if your home directory name happens to contain a slash (heh heh). Repeat-By: Say "filexp ~". Fix: You can change this either in Configure or in filexp itself as you see fit. From rn, say "| patch FILENAME -d DIR", where DIR is your rn source directory, and FILENAME is either filexp or Configure. Outside of rn, say "cd DIR; patch FILENAME <thisarticle". If you don't have the patch program, apply the following by hand, or get patch. Be sure to run Configure if you patch that, and reinstall filexp in your rnlib. *** filexp.bak Tue Aug 7 17:17:03 1984 --- filexp Fri Nov 9 09:04:51 1984 *************** *** 2,8 : expand filename case $1 in ~/*|~) ! /bin/echo $1 | /bin/sed "s/~/${HOME-$LOGDIR}/" ;; ~*) if /bin/test -f /bin/csh; then --- 2,8 ----- : expand filename case $1 in ~/*|~) ! /bin/echo $1 | /bin/sed "s|~|${HOME-$LOGDIR}|" ;; ~*) if /bin/test -f /bin/csh; then