config

OpenBSD system configuration
git clone git://jacobedwards.org/config
Log | Files | Refs | README

commit e34954a54cdfa53fa029c2e2bf55fe1af9b0910f
parent 8ade4842235fb6daf309c49aab7185c49395d97a
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date:   Sat, 16 Oct 2021 01:51:04 -0700

Revise the cleanpath script

Remove apostrophes instead of treating them as word separators.

Diffstat:
Mlocal/bin/bin/cleanpath | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/local/bin/bin/cleanpath b/local/bin/bin/cleanpath @@ -4,13 +4,14 @@ # [cleanname, the perfect name, is taken by plan9] # # 1. Insert separators between camel-case words -# 2. Replace most punctuation with space (including all but the last period) +# 2. Replace most punctuation with space or nothing (including all but the last period) # 3. Replace space with hyphen # 4. Replace excess hyphens with nothing # 5. Replace upper-case letters with their lower-case equivilents sed -E 's/([^A-Z])([A-Z][^A-Z])/\1 \2/g -s/[!"#$%&'\''()+,:;<>@[\\\]^{|}~]/ /g +s/'\''//g +s/[!"#$%&()+,:;<>@[\\\]^{|}~]/ /g s/\.([^.]*\.)/-\1/g y/ /--/ s/--+/-/g