diff --git a/debian/changelog b/debian/changelog index c11f945..b9787a1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +grc (1.13-1) unstable; urgency=low + + * do not add sh aliases unless explicitely allowed in /etc/default/grc (closes: #984629) + * several minor improvements + + -- Radovan GarabĂ­k Mon, 26 Jul 2021 18:08:34 +0200 + grc (1.12-1) unstable; urgency=low * add new configurations diff --git a/debian/grc.default b/debian/grc.default index b987641..984ba29 100644 --- a/debian/grc.default +++ b/debian/grc.default @@ -2,6 +2,7 @@ # true or false # # since this is rather invasive, it defaults to false +# # changing it makes your shell source /etc/profile.d/grc GRC_ALIASES=false diff --git a/grc b/grc index c59d5f6..4b6848b 100755 --- a/grc +++ b/grc @@ -6,11 +6,11 @@ import os, re, string, sys, getopt, signal def version(): - print ("Generic Colouriser 1.12") + print ("Generic Colouriser 1.13") sys.exit() def help(): - print("""Generic Colouriser 1.12 + print("""Generic Colouriser 1.13 grc [options] command [args] Options: -e --stderr redirect stderr. If this option is selected, diff --git a/grc.sh b/grc.sh index 231b46e..efa4d17 100644 --- a/grc.sh +++ b/grc.sh @@ -1,5 +1,9 @@ # aliases for grc(1) +# this will execute only if there is a line with +# GRC_ALIASES=true +# in /etc/default/grc + [ -f /etc/default/grc ] && . /etc/default/grc [ x$GRC_ALIASES = xtrue ] || return 0