From eb4b8bb61b0226492a59b6ae18e179cfceba7520 Mon Sep 17 00:00:00 2001 From: Timothy Sample Date: Thu, 8 Nov 2018 22:36:11 -0500 Subject: [PATCH] Handle '$@' and '$*' parameters * geesh/word.scm (parameter-ref): Handle '$@' and '$*' parameters. --- geesh/word.scm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/geesh/word.scm b/geesh/word.scm index 39b173b..811d49e 100644 --- a/geesh/word.scm +++ b/geesh/word.scm @@ -137,6 +137,11 @@ string, the separator is derived from @var{ifs} using "Get the value of the variable or special parameter @var{name} in @var{env}. If @var{name} is unset, return @code{#f}." (match name + ("@" `( ,(environment-arguments env))) + ("*" (let* ((ifs (or (var-ref env "IFS") + (string #\space #\tab #\newline))) + (sep (argument-separator ifs))) + (string-join (environment-arguments env) sep))) ("?" (number->string (environment-status env))) (_ (var-ref env name))))