Package: devscripts
Version: 2.10.20
Severity: normal

--- Please enter the report below this line. ---

$ cat test.sh
#!/bin/dash

set -e

for HOSTNAME in "" "localhost" "$(hostname)" "$(hostname -f)"; do
   if echo $DISPLAY | grep -q "^$HOSTNAME:0.*"; then
     NOSTART=yes
   fi
done

$ dash ./test.sh && echo ok
ok

$ checkbashisms test.sh 
possible bashism in test.sh line 6 ($HOST(TYPE|NAME)):
   if echo $DISPLAY | grep -q "^$HOSTNAME:0.*"; then

Sample is a part of wdm.postinst maintainer script and subject of 2 bug reports:
#475637 and #489668

--- System information. ---
Architecture: i386
Kernel:       Linux 2.6.24-1-686

Debian Release: lenny/sid
  500 testing         www.debian-multimedia.org 

--- Package information. ---
Depends          (Version) | Installed
==========================-+-===========
debianutils       (>= 2.0) | 2.28.4
dpkg-dev                   | 1.14.16.6
libc6           (>= 2.7-1) | 2.7-10
perl              (>= 5.8) | 5.8.8-12
sed              (>= 2.95) | 4.1.5-6


-- 
With best regards, Vlad 'mend0za' Shakhov. xmpp: [EMAIL PROTECTED]




-- 
To unsubscribe, send mail to [EMAIL PROTECTED]

Reply via email to