From 996e69292a556f8d35f5552d029d768183f22fda Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Sat, 24 Feb 2024 02:50:19 -0800 Subject: [PATCH] fix syntax error --- sh/document | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sh/document b/sh/document index 121494a..6761f62 100755 --- a/sh/document +++ b/sh/document @@ -28,7 +28,7 @@ document2() { @-*) s="$code" n="${s%%[!a-zA-Z0-9_-]*}" # substr first word (might not be one) - while [ -z "$n" ] || ["$n" = function ] || [ "$n" = alias ]; do + while [ -z "$n" ] || [ "$n" = function ] || [ "$n" = alias ]; do [ -n "$s" ] || break s="${s#${s%%[!a-zA-Z0-9_-]*}}" # lstrip to end of word s="${s#*[!a-zA-Z0-9_-]}" # lstrip to next word