]> git.plutz.net Git - cgilite/commitdiff
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 6821a7a662e6cf6630af51691ae3816ca10959e4..b936e47dbe07457833b724fbeadbac12a5bceaf7 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;'
 }