]> git.plutz.net Git - cgilite/commitdiff
strip multi slash sequences in PATH function
authorPaul Hänsch <paul@plutz.net>
Tue, 17 Jul 2018 01:16:06 +0000 (03:16 +0200)
committerPaul Hänsch <paul@plutz.net>
Tue, 17 Jul 2018 01:16:06 +0000 (03:16 +0200)
cgilite.sh

index 2930a4c36259ff6332375ea80b3a0bd683ee31b3..0c9582b658dd379b69c8bfecb2cfd4c18c623fdc 100755 (executable)
@@ -181,7 +181,8 @@ PATH(){
             tX;
             s;/[^/]+/\.\./;/;;
             tX;
-            s;^(/.*)/$;\1;'
+            s;^(/.*)/$;\1;
+            s;/+;/;g;'
 }