From a55a4d8fb1dae783a93492c7d9b55d042791864f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Sun, 15 Jul 2018 21:54:36 +0200 Subject: [PATCH] fix: PATH function removed all directory parts shorter than two characters (pattern .. and . ;-) --- cgilite.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cgilite.sh b/cgilite.sh index 6821a7a..b936e47 100755 --- a/cgilite.sh +++ b/cgilite.sh @@ -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;' } -- 2.39.2