mirror of
https://github.com/notwa/rc
synced 2025-02-05 07:43:22 -08:00
fix syntax error
This commit is contained in:
parent
3dff68b8d7
commit
996e69292a
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue