Subject: one more fix to fvwm_make_browse_menu.sh

From: Brad Giaccio <[email-masked]>
Date: Tue, 2 Nov 1999 07:55:19 -0500

The line for directories was incorect I beleive this is what is needed.
Also the .. line didn't work either.  It seems that the solaris sh
doesn't update $PWD when you change directories but /bin/pwd does return
the right thing

Brad

Index: fvwm_make_browse_menu.sh
===================================================================
RCS file: /home/cvs/fvwm/fvwm/utils/fvwm_make_browse_menu.sh,v
retrieving revision 1.5
diff -u -b -B -r1.5 fvwm_make_browse_menu.sh
--- fvwm_make_browse_menu.sh    1999/11/02 10:37:37     1.5
+++ fvwm_make_browse_menu.sh    1999/11/02 12:54:28
@@ -65,7 +65,7 @@
 
 # add '..' entry
 cd "$DIR"/..
-echo AddToMenu \"$MENU\" \"..\" PipeRead \'echo \""$PWD"\" \> "$DIRFILE" ';' echo Menu \\\""$MENU"\\\" WarpTitle\'
+echo AddToMenu \"$MENU\" \"..\" PipeRead \'echo \""`/bin/pwd`"\" \> "$DIRFILE" ';' echo Menu \\\""$MENU"\\\" WarpTitle\'
 
 # add separator
 echo AddToMenu \"$MENU\" \"\" Nop
@@ -82,7 +82,7 @@
         # it's a directory
         cd "$DIR/$i"
         # put new path in $DIRFILE and invoke the menu again
-        echo AddToMenu \"$MENU\" \""$i/"\" PipeRead \'echo \"`echo $PWD|$SED -e s://:/:g`\" \> "$DIRFILE" ';' echo Menu \\\""$MENU"\\\" WarpTitle\'
+        echo AddToMenu \"$MENU\" \""$i/"\" PipeRead \'echo \"`echo $DIR/$i|$SED -e s://:/:g`\" \> "$DIRFILE" ';' echo Menu \\\""$MENU"\\\" WarpTitle\'
     else
         # something else, apply $ACTION to it
         echo AddToMenu \"$MENU\" \""$i"\" Exec $TERMINAL $ACTION \""$DIR/$i"\"

--
Visit the official FVWM web page at <URL:http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm-workers" in the
body of a message to [email-masked].
To report problems, send mail to [email-masked]