The processing of the $ENV variable is not at all mentioned in the
manpage.  POSIX only requires that parameter substitution is applied to
it.

In fact in dash the value of $ENV is subject to parameter and command
substitutions and to arithmetic expansion.  This should be documented,
as this behaviour is more complex that what POSIX requires and is
different from other shells: ksh93 and pdksh/mksh additionally subject
it to tilde expansion.

Here is a proposed text change of one sentence:

 If the environment variable ENV is set on entry to an interactive shell,
 or is set in the .profile of a login shell, the shell next reads
-commands from the file named in ENV.
+commands from the file named by ENV after subjecting its value to
+parameter expansion, command substitution and arithmetic expansion.

Regards,

--
G.raud Meyer
[email protected]
--
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to