Fix docstring for 'parameter-ref'.

* gash/word.scm (parameter-ref): Fix docstring.
This commit is contained in:
Timothy Sample 2019-08-20 12:22:51 -04:00
parent 223e8d2635
commit 5c1602d5f2
1 changed files with 2 additions and 1 deletions

View File

@ -220,7 +220,8 @@ string, the separator is derived from @var{ifs} using
(define* (parameter-ref name #:optional dflt)
"Get the value of the variable or special parameter @var{name} from
the environment. If @var{name} is unset, return @code{#f}."
the environment. If @var{name} is unset, return @var{dflt} if
provided or @code{#f} if not."
(match name
("@" `(<sh-at> ,(cdr (program-arguments))))
("*" (let* ((ifs (or (getvar "IFS")