mirror of
https://github.com/notwa/rc
synced 2024-05-18 01:53:22 -07:00
fix syntax error
This commit is contained in:
parent
3dff68b8d7
commit
996e69292a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user