Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site sdcrdcf.UUCP Path: utzoo!utcs!lsuc!pesnta!hplabs!sdcrdcf!lwall From: lwall@sdcrdcf.UUCP (Larry Wall) Newsgroups: net.sources.bugs Subject: rn 4.3 patch #16 Message-ID: <2017@sdcrdcf.UUCP> Date: Thu, 23-May-85 14:56:45 EDT Article-I.D.: sdcrdcf.2017 Posted: Thu May 23 14:56:45 1985 Date-Received: Sat, 25-May-85 22:20:54 EDT Organization: System Development Corp. R+D, Santa Monica Lines: 117 System: rn version 4.3 Patch #: 16 Priority: LOW Subject: filexp feeds confusing command to sed From: 5432dh@homxb.UUCP (David Himber), barto@celerity.UUCP (David Barto) Description: Oops. I fixed this for the previous version and it somehow unfixed itself. Oh well. Filexp feeds a command to sed of the form "s/~/$HOME/", but since HOME contains slashes, it won't work. Fix: From rn, say "| patch -d DIR", where DIR is your rn source directory. Outside of rn, say "cd DIR; patch Patch #: 16 Index: Configure Prereq: 4.3.1.4 *** Configure.old Thu May 23 11:25:40 1985 --- Configure Thu May 23 11:27:18 1985 *************** *** 3,9 # If these # comments don't work, trim them. Don't worry about the other # shell scripts, Configure will trim # comments from them for you. # ! # $Header: Configure,v 4.3.1.4 85/05/20 17:13:11 lwall Exp $ # # $Log: Configure,v $ # Revision 4.3.1.4 85/05/20 17:13:11 lwall --- 3,9 ----- # If these # comments don't work, trim them. Don't worry about the other # shell scripts, Configure will trim # comments from them for you. # ! # $Header: Configure,v 4.3.1.5 85/05/23 11:23:22 lwall Exp $ # # $Log: Configure,v $ # Revision 4.3.1.5 85/05/23 11:23:22 lwall *************** *** 6,11 # $Header: Configure,v 4.3.1.4 85/05/20 17:13:11 lwall Exp $ # # $Log: Configure,v $ # Revision 4.3.1.4 85/05/20 17:13:11 lwall # Makes sure -lcurses is really a terminfo library. # Puts single instead of double quotes around defs in config.sh. --- 6,14 ----- # $Header: Configure,v 4.3.1.5 85/05/23 11:23:22 lwall Exp $ # # $Log: Configure,v $ + # Revision 4.3.1.5 85/05/23 11:23:22 lwall + # filexp flubs sed command. + # # Revision 4.3.1.4 85/05/20 17:13:11 lwall # Makes sure -lcurses is really a terminfo library. # Puts single instead of double quotes around defs in config.sh. *************** *** 570,576 : expand filename case \$1 in ~/*|~) ! $echo \$1 | $sed "s/~/\${HOME-\$LOGDIR}/" ;; ~*) if $test -f /bin/csh; then --- 573,579 ----- : expand filename case \$1 in ~/*|~) ! $echo \$1 | $sed "s|~|\${HOME-\$LOGDIR}|" ;; ~*) if $test -f /bin/csh; then NOTE: if patch says "File to patch: ", then you haven't run Configure. Just interrupt and you're done. Index: filexp *** filexp.old Thu May 23 11:25:39 1985 --- filexp Thu May 23 11:26:04 1985 *************** *** 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