Bug#244300: base-config: Unquoted variable in apt-setup
Package: base-config
Version: 2.18
Severity: minor
Hi,
The following code snippet around line 326 of /usr/sbin/apt-setup
if [ -n $COUNTRY ]; then
db_set apt-setup/country $COUNTRY
fi
produces an error like
/usr/sbin/apt-setup: line 326: [: United: binary operator expected
if the COUNTRY variable contains more than one word. It probably needs
to be quoted to be treated like a single argument in such a case. It
seems like this problem does not affect the db_set statement, i.e. the
complete name of the country is put into the debconf database.
Best regards,
Jurij Smakov jurij@wooyd.org
Key: http://www.wooyd.org/pgpkey/ KeyID: C99E03CC
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: sparc
Kernel: Linux 2.4.24-sparc32
Locale: LANG=C, LC_CTYPE=C
Versions of packages base-config depends on:
ii adduser 3.52 Add and remove users and groups
ii apt 0.5.24 Advanced front-end for dpkg
ii aptitude 0.2.14.1-2 curses-based apt frontend
ii bsdutils 1:2.12-6 Basic utilities from 4.4BSD-Lite
ii console-data 2002.12.04dbs-37 Keymaps, fonts, charset maps, fall
ii console-tools 1:0.2.3dbs-50 Linux console and font utilities
ii debconf 1.4.22 Debian configuration management sy
ii debianutils 2.8.1 Miscellaneous utilities specific t
ii gettext-base 0.14.1-2 GNU Internationalization utilities
ii passwd 1:4.0.3-26 Change and administer password and
-- debconf information excluded
Reply to: