Package: shellcheck Version: 0.3.3-1 Severity: normal jbr@hurakan:~$ cat ./hellcheck #!/bin/bash (( $# == 666 )) && echo 'satanic number of arguments!' # okay (( $$ == 666 )) && echo 'satanic PID!' # "error"
jbr@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 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org