[Build-common-hackers] Bug#570035: cdbs-edit-patch fails, because $USER is unset
Jörg Sommer
joerg at alea.gnuu.de
Mon Feb 15 23:41:25 UTC 2010
Package: cdbs
Version: 0.4.65
Severity: normal
Hi,
are you sure, USER is not a bash feature? In my zsh environment, I can't
find this variable. The same holds for dash:
% env -i PATH=$PATH dash -c 'echo $USER |wc -w'
0
Due to the unset variable the getent call prints the whole passwd and
this makes the following commands fail.
Bye, Jörg.
+ cut -f 7 -d:
+ getent passwd
+ SH=/bin/zsh-static
/bin/sh
/bin/sh
/bin/sh
/bin/sync
/bin/sh
/bin/sh
/bin/sh
/bin/sh
/bin/sh
/bin/sh
/bin/sh
/bin/sh
/bin/sh
/bin/sh
/bin/sh
/bin/sh
/bin/sh
/bin/sh
/bin/zsh-beta
/bin/false
/bin/false
/bin/false
/bin/false
/usr/sbin/nologin
/bin/false
/bin/false
/bin/false
/bin/false
+ [ /bin/zsh-static
/bin/sh
/bin/sh
/bin/sh
/bin/sync
/bin/sh
/bin/sh
/bin/sh
/bin/sh
/bin/sh
/bin/sh
/bin/sh
/bin/sh
/bin/sh
/bin/sh
/bin/sh
/bin/sh
/bin/sh
/bin/sh
/bin/zsh-beta
/bin/false
/bin/false
/bin/false
/bin/false
/usr/sbin/nologin
/bin/false
/bin/false
/bin/false
/bin/false ]
+ /bin/zsh-static /bin/sh /bin/sh /bin/sh /bin/sync /bin/sh /bin/sh /bin/sh /bin/sh /bin/sh /bin/sh /bin/sh /bin/sh /bin/sh /bin/sh /bin/sh /bin/sh /bin/sh /bin/sh /bin/zsh-beta /bin/false /bin/false /bin/false /bin/false /usr/sbin/nologin /bin/false /bin/false /bin/false /bin/false
/bin/sh:4: parse error near `)'
+ rm -rf /tmp/cdbs-new-patch.VPNCwO /tmp/cdbs-old-patch-header.qeJFHN
-- System Information:
Debian Release: unstable/experimental
APT prefers unstable
APT policy: (900, 'unstable'), (700, 'experimental')
Architecture: powerpc (ppc)
Kernel: Linux 2.6.33-rc7
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages cdbs depends on:
ii debhelper 7.4.13 helper programs for debian/rules
Versions of packages cdbs recommends:
ii autotools-dev 20090611.1 Update infrastructure for config.{
Versions of packages cdbs suggests:
ii devscripts 2.10.61 scripts to make the life of a Debi
pn doc-base <none> (no description available)
-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature http://en.wikipedia.org/wiki/OpenPGP
URL: <http://lists.alioth.debian.org/pipermail/build-common-hackers/attachments/20100216/31710658/attachment.pgp>
More information about the Build-common-hackers
mailing list