DASH Shell discussions
 help / color / mirror / Atom feed
From: Dima Sorkin <dima@minignu.minidns.net>
To: dash@vger.kernel.org, herbert@gondor.apana.org.au
Subject: evaluation of env variables in DASH
Date: Wed, 19 Oct 2011 23:24:50 +0200	[thread overview]
Message-ID: <87aa8woesd.fsf@minignu.minidns.net> (raw)

Hi.
  The following DASH behaviour seems buggy to me

-----------------
$ export A='\n'
$ echo $A

$
-----------------

whereas using BASH would result in printing literally \n .

I.e. presumingly DASH does secondary interpolation of escaped
symols in values of environment variables. 

Please CC me with replies, I am not in the list.

Thanks, regards,
  Dima.

P.S.
  Wrom the other hand

$ export B=1
$ export A='$B'
$ echo $A
PRINTS $B
$

             reply	other threads:[~2011-10-19 21:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-19 21:24 Dima Sorkin [this message]
2011-10-19 21:42 ` evaluation of env variables in DASH Eric Blake
2011-10-19 21:58 ` Jilles Tjoelker
2011-10-19 22:13   ` Dima Sorkin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87aa8woesd.fsf@minignu.minidns.net \
    --to=dima@minignu.minidns.net \
    --cc=dash@vger.kernel.org \
    --cc=herbert@gondor.apana.org.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox