[Pkg-haskell-maintainers] Bug#754990: shellcheck: false positive SC2004 for $$ in (( ))
Justin B Rye
justin.byam.rye at gmail.com
Wed Jul 16 17:05:22 UTC 2014
Package: shellcheck
Version: 0.3.3-1
Severity: normal
jbr at hurakan:~$ cat ./hellcheck
#!/bin/bash
(( $# == 666 )) && echo 'satanic number of arguments!' # okay
(( $$ == 666 )) && echo 'satanic PID!' # "error"
jbr at hurakan:~$ shellcheck -f gcc ./hellcheck
hellcheck:3:4: note: $ on variables in (( )) is unnecessary. [SC2004]
Thankyou for shellcheck!
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (990, 'testing'), (50, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 3.15-trunk-686-pae (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages shellcheck depends on:
ii libc6 2.19-7
ii libffi6 3.1-2
ii libgmp10 2:6.0.0+dfsg-4
shellcheck recommends no packages.
shellcheck suggests no packages.
-- no debconf information
--
JBR with qualifications in linguistics, experience as a Debian
sysadmin, and probably no clue about this particular package
More information about the Pkg-haskell-maintainers
mailing list