Author: Stan Eisenstat
Subject: Re: [Cs323] local by itself
Date: Monday, 28 Sep 2020, 08:34:12
> Message Posted By: Unknown
>
> Why isn't the command 'a=b' valid? ...
Because a=b is a TEXT token of the form NAME=VALUE and
thus is treated as a [local], and as a result there are
no arguments, which parsley flags as an error (unlike
bash).
=====
> ... Why doesn't this statement from the
> spec: "To resolve the ambiguity we will assume that a TEXT token of the
> form NAME=VALUE is always treated as a [local] if it can be." mean that
> the local should be treated as TEXT?
A [local] is a TEXT token, but one of a special form.
--Stan-
PREV
INDEX
NEXT