From 62d78729a32dd136feddede21a5dc6e9c3dbe2d7 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Sun, 27 Jul 2014 00:10:16 +0200 Subject: helpers/includes now should include an __init function and not just do stuff right away when being sourced --- helper/string.inc | 6 ------ 1 file changed, 6 deletions(-) (limited to 'helper/string.inc') diff --git a/helper/string.inc b/helper/string.inc index 75baf2ca..077f1719 100644 --- a/helper/string.inc +++ b/helper/string.inc @@ -12,12 +12,6 @@ itrim () { sed -r 's/^\s+//g;s/\s+$//g' } -# usage: CANONICALIZED_STRING=$(canonalize ) -# usage with relative path requires you to be in the correct directory. -canonicalize() { - cd -P -- "$(dirname -- "$1")" && printf '%s\n' "$(pwd -P)/$(basename -- "$1")" -} - escape_search() { sed -e 's/[]\/()$*.^|[]/\\&/g' -- cgit v1.2.3-55-g7522