DASH Shell discussions
 help / color / mirror / Atom feed
* evaluation of env variables in DASH
@ 2011-10-19 21:24 Dima Sorkin
  2011-10-19 21:42 ` Eric Blake
  2011-10-19 21:58 ` Jilles Tjoelker
  0 siblings, 2 replies; 4+ messages in thread
From: Dima Sorkin @ 2011-10-19 21:24 UTC (permalink / raw)
  To: dash, herbert

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
$

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-10-19 22:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-19 21:24 evaluation of env variables in DASH Dima Sorkin
2011-10-19 21:42 ` Eric Blake
2011-10-19 21:58 ` Jilles Tjoelker
2011-10-19 22:13   ` Dima Sorkin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox