Fix docstring for 'parameter-ref'.
* gash/word.scm (parameter-ref): Fix docstring.
This commit is contained in:
parent
223e8d2635
commit
5c1602d5f2
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue