Subject: `guix home import` doesn't quote aliases properly

From: Attila Lendvai <[email-masked]>
Date: Mon, 01 Apr 2024 11:18:02 +0000

as reported on #guix on 2024-04-01:

https://logs.guix.gnu.org/guix/2024-04-01.log#121908

the following alias (a default in ubuntu) is not quoted properly:

notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"

which leads to an error when opening a new terminal after a `guix home reconfigure`.

a discussion of this alias:

https://askubuntu.com/questions/423646/use-of-default-alias-alert

-- 
• attila lendvai
• PGP: 963F 5D5F 45C7 DFCD 0A39
--
“What you do speaks so loud I cannot hear what you say.”
	— Ralph Waldo Emerson (1803–1882)