Public bug reported:
vic@saucer:~$ lsb_release -rd
Description: Ubuntu 24.10
Release: 24.10
vic@saucer:~$ apt-cache policy grc
grc:
Installed: 1.13.1-1
Candidate: 1.13.1-1
Version table:
*** 1.13.1-1 500
500 http://ca.archive.ubuntu.com/ubuntu oracular/universe amd64 Packages
500 http://ca.archive.ubuntu.com/ubuntu oracular/universe i386 Packages
100 /var/lib/dpkg/status
Problem description:
If using bash shell, setting GRC_ALIASES (manually, in .bashrc, etc) is
always overridden by the setting in /etc/default/grc . This means you
can only turn it on/off globally.
This is the problematic section of /etc/profile.d/grc.sh :
---------------
# this will execute only if there is a line with
# GRC_ALIASES=true
# in /etc/default/grc or you export GRC_ALIASES=true prior to sourcing this
[ -f /etc/default/grc ] && . /etc/default/grc
[ x$GRC_ALIASES = xtrue ] || return 0
---------------
Because /etc/default/grc is always sourced, it overrides any personal
GRC_ALIASES setting.
Example trying to set up grc manually, and having it just reset to
false:
vic@saucer:~$ grep GRC_ALIASES /etc/default/grc
GRC_ALIASES=false
vic@saucer:~$ export GRC_ALIASES=true
vic@saucer:~$ echo $GRC_ALIASES
true
vic@saucer:~$ source /etc/profile.d/grc.sh
vic@saucer:~$ echo $GRC_ALIASES
false
This problem appears to come from upstream and is not Ubuntu-specific.
** Affects: grc (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2089175
Title:
grc ignores personal GRC_ALIASES setting
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grc/+bug/2089175/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs