dash.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Please document the peculiar $ENV processing
@ 2017-12-17 18:00 G.raud
  0 siblings, 0 replies; only message in thread
From: G.raud @ 2017-12-17 18:00 UTC (permalink / raw)
  To: dash

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

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.


G.raud Meyer

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-12-17 18:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-17 18:00 Please document the peculiar $ENV processing G.raud

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).