mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* Environment variables set by /env/bin/init disappear when script exits
@ 2019-06-11 14:52 Ian Abbott
  2019-06-11 15:21 ` Ian Abbott
  0 siblings, 1 reply; 3+ messages in thread
From: Ian Abbott @ 2019-06-11 14:52 UTC (permalink / raw)
  To: Barebox List

Since commit 90df2a955e3c ("defaultenv: Convert init script to C"), if 
the legacy /env/bin/init script is still being used, any environment 
variables that were set in the script (such as the PS1 prompt) disappear 
when the script exits.  I guess it is because the script is now run 
directly by run_command(initfile) (initfile is "/env/bin/init") rather 
than by run_command("source /env/bin/init").

-- 
-=( Ian Abbott <abbotti@mev.co.uk> || Web: www.mev.co.uk )=-
-=( MEV Ltd. is a company registered in England & Wales. )=-
-=( Registered number: 02862268.  Registered address:    )=-
-=( 15 West Park Road, Bramhall, STOCKPORT, SK7 3JZ, UK. )=-

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2019-06-12  6:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-11 14:52 Environment variables set by /env/bin/init disappear when script exits Ian Abbott
2019-06-11 15:21 ` Ian Abbott
2019-06-12  6:32   ` Sascha Hauer

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