From b044dff9a915bbdea44b76dfdbc1c33b1e4414e0 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Mon, 14 Nov 2022 10:44:25 -0700 Subject: hstow: escape literal . --- bin/hstow | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/hstow') diff --git a/bin/hstow b/bin/hstow index 8fbec796..b2615786 100755 --- a/bin/hstow +++ b/bin/hstow @@ -131,7 +131,7 @@ stow () { unstow () { cd "$HOME" - dir_pat="^.$(echo $DIR | cut -c$(echo $HOME | wc -m | tr -d ' ')-)/" + dir_pat="^\.$(echo $DIR | cut -c$(echo $HOME|wc -m|tr -d ' ')-)/" for file in $(find . -type l ! -name . ! -name "$cchars" \ | grep -v "$dir_pat"); do if readlink "$file" | grep -Eq '^(\.\./)*\.STOW/'"$NAME/"; then -- cgit v1.2.3