GNU bug report logs - #70125
`guix home import` doesn't quote aliases properly

Previous Next

Package: guix;

Reported by: Attila Lendvai <attila <at> lendvai.name>

Date: Mon, 1 Apr 2024 11:19:02 UTC

Severity: normal

To reply to this bug, email your comments to 70125 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#70125; Package guix. (Mon, 01 Apr 2024 11:19:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Attila Lendvai <attila <at> lendvai.name>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Mon, 01 Apr 2024 11:19:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Attila Lendvai <attila <at> lendvai.name>
To: "bug-guix <at> gnu.org" <bug-guix <at> gnu.org>
Subject: `guix home import` doesn't quote aliases properly
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)





Information forwarded to bug-guix <at> gnu.org:
bug#70125; Package guix. (Sat, 28 Sep 2024 18:50:01 GMT) Full text and rfc822 format available.

Message #8 received at 70125 <at> debbugs.gnu.org (full text, mbox):

From: Attila Lendvai <attila.lendvai <at> gmail.com>
To: 70125 <at> debbugs.gnu.org
Cc: Attila Lendvai <attila <at> lendvai.name>
Subject: Re: `guix home import` doesn't quote aliases properly
Date: Sat, 28 Sep 2024 20:47:23 +0200
> as reported on #guix on 2024-04-01:
> 
> https://logs.guix.gnu.org/guix/2024-04-01.log#121908

copying for reference from the paste:

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

<#secure method=pgpmime mode=sign>
-- 
-- 
• attila lendvai
• PGP: 963F 5D5F 45C7 DFCD 0A39
--
“I do not think that it is possible to give any meaningful definition of anarchy by which it could exist but currently does not. Anarchists are not those who wish that there be anarchy, but those who reason along anarchist lines about what there currently is, what there was and what could there possibly be.”
	— Zsolt Felföldi




This bug report was last modified 260 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.