summaryrefslogtreecommitdiffstats
path: root/bin/undot-paths
diff options
context:
space:
mode:
Diffstat (limited to 'bin/undot-paths')
-rwxr-xr-xbin/undot-paths14
1 files changed, 0 insertions, 14 deletions
diff --git a/bin/undot-paths b/bin/undot-paths
deleted file mode 100755
index 2ed86bde..00000000
--- a/bin/undot-paths
+++ /dev/null
@@ -1,14 +0,0 @@
-#! /bin/sh
-# undot_paths : lines path |> lines path
-# Remove all dots (. and ..) from input paths.
-set -euf
-
-sed '
- :0
- s://\+:/:g
- s:/\.\(/\|$\):\1:g
- s:/[^/]\+/\.\.\(/\|$\):\1:g
- s:^/\(\.\./\)\+:/:
- t0
- s:^$:/:
-'