changeset:   44:d856bf27bb6e
tag:         tip
user:        arg_AT_suckless.org
date:        Thu Feb 01 15:54:14 2007 +0100
files:       show.rc
description:
hotfix for the case that '' is sed'ed in show.rc
changeset:   43:6f9e1b07a885
user:        arg_AT_suckless.org
date:        Thu Feb 01 15:49:43 2007 +0100
files:       edit.rc remove.rc save.rc show.rc
description:
removing leading / from PATH_INFO
diff -r 3b628204d1b1 -r d856bf27bb6e edit.rc
--- a/edit.rc	Thu Feb 01 14:50:13 2007 +0100
+++ b/edit.rc	Thu Feb 01 15:54:14 2007 +0100
@@ -8,7 +8,7 @@ if(! test $PATH_INFO || echo $PATH_INFO 
         echo
         exit 0
 }
-PATH_INFO=`{cleanname $PATH_INFO}
+PATH_INFO=`{cleanname $PATH_INFO | sed 's/^.//'}
 if(test -d $DIRIDIR/$PATH_INFO) {
         echo Location: $ADDRESS/$SHOW/$PATH_INFO
         echo
diff -r 3b628204d1b1 -r d856bf27bb6e remove.rc
--- a/remove.rc	Thu Feb 01 14:50:13 2007 +0100
+++ b/remove.rc	Thu Feb 01 15:54:14 2007 +0100
@@ -14,7 +14,7 @@ if(! test $PATH_INFO || echo $PATH_INFO 
         echo
         exit 0
 }
-PATH_INFO=`{cleanname $PATH_INFO}
+PATH_INFO=`{cleanname $PATH_INFO | sed 's/^.//'}
 for(i in `{sed 's/\&/ /g'})
         eval $i
 if(test $password) {
diff -r 3b628204d1b1 -r d856bf27bb6e save.rc
--- a/save.rc	Thu Feb 01 14:50:13 2007 +0100
+++ b/save.rc	Thu Feb 01 15:54:14 2007 +0100
@@ -14,7 +14,7 @@ if(! test $PATH_INFO || echo $PATH_INFO 
         echo
         exit 0
 }
-PATH_INFO=`{cleanname $PATH_INFO}
+PATH_INFO=`{cleanname $PATH_INFO | sed 's/^.//'}
 if(test -d $DIRIDIR/$PATH_INFO)
         escape
 for(i in `{sed 's/\&/ /g'})
diff -r 3b628204d1b1 -r d856bf27bb6e show.rc
--- a/show.rc	Thu Feb 01 14:50:13 2007 +0100
+++ b/show.rc	Thu Feb 01 15:54:14 2007 +0100
@@ -37,8 +37,8 @@ if(test $PATH_INFO && echo $PATH_INFO | 
 }
 if(! test $PATH_INFO)
         PATH_INFO=''
-PATH_INFO=`{cleanname $PATH_INFO}
-
+if not
+	PATH_INFO=`{cleanname $PATH_INFO | sed 's/^.//'}
 if(test -d $DIRIDIR/$PATH_INFO) {
         file=`{find $DIRIDIR/$PATH_INFO -type f | grep '/[a-zA-Z0-9_]+$' | sort | sed 1q}
         if(test $file && test -f $file) {
Received on Thu Feb 01 2007 - 16:00:02 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:54:49 UTC