From 325f2850f7ff3808b25a594afca83150d25ce856 Mon Sep 17 00:00:00 2001
From: Salt <rehashedsalt@cock.li>
Date: Wed, 21 Nov 2018 15:38:34 -0600
Subject: [PATCH] .profile: Make POSIX-compliant again Turns out basic sh can
 do exactly what I wanted Blessed be the manpages

---
 .profile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.profile b/.profile
index b8a6fd90..9d04f876 100755
--- a/.profile
+++ b/.profile
@@ -43,8 +43,8 @@ for path in $desiredpath; do
 done
 unset IFS
 # We remove any prepending colons to make it appear neater
-while [ "${PATH:0:1}" == ":" ]; do
-	PATH="${PATH:1}"
+while [ "${PATH#:}" != "$PATH" ]; do
+	PATH="${PATH#:}"
 done
 # Then finally set up our path
 PATH="$desiredpath:$PATH"