Author: Stan Eisenstat
Subject: Re: [Cs323] Note 4, first bullet point
Date: Wednesday, 14 Oct 2020, 18:14:54
> Message Posted By: Unknown
>
> Says that "${ not followed by an alphanumeric or _" is an error. However,
> isn't it also an error if immediately followed by a digit? (The staff
> solution also seems to imply the latter).
No, as is illustrated by
% /c/cs323/Hwk3/mcBash foo
(1)$ ${1}
>> foo
But if you omit the closing },
% /c/cs323/Hwk3/mcBash foo
(1)$ ${1
Invalid expansion
--Stan-
PREV
INDEX
NEXT