mirror of
https://github.com/token2/snapd.git
synced 2026-03-13 11:15:47 -07:00
Dash cannot expand PS1 as set by spread.
This patch changes all of the "run shell command" apps to reset PS1 to a safe value.
The use of PS=1'${PWD/#$SPREAD_PATH/...} #' causes dash to enter an infinite
loop. While the dash bug is a real bug, we should work around it. I have countless times
accidentally invoked interactive dash only to get upset and lose my debugging session.
The dash bug has been reported to the dash mailing list (there is no bug tracker).
Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>