fix: PATH function removed all directory parts shorter than two characters (pattern...
authorPaul Hänsch <paul@plutz.net>
Sun, 15 Jul 2018 19:54:36 +0000 (21:54 +0200)
committerPaul Hänsch <paul@plutz.net>
Sun, 15 Jul 2018 19:54:36 +0000 (21:54 +0200)
cgilite.sh

index 6821a7a..b936e47 100755 (executable)
@@ -177,9 +177,9 @@ PATH(){
   printf %s "$1" \
   | sed -r 's;^.*$;/&/;; s;/+;/;g;
             :X;
-            s;^/../;/;; s;/./;/;g;
+            s;^/\.\./;/;; s;/\./;/;g;
             tX;
-            s;/[^/]+/../;/;;
+            s;/[^/]+/\.\./;/;;
             tX;
             s;^(/.*)/$;\1;'
 }