1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-05-18 01:53:22 -07:00

fix syntax error

This commit is contained in:
Connor Olding 2024-02-24 02:50:19 -08:00
parent 3dff68b8d7
commit 996e69292a

View File

@ -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