Bug#720168: checkbashisms: false positive; confusing left bitwise shift '<<' with heredoc

Cristian Ionescu-Idbohrn cristian.ionescu-idbohrn at axis.com
Mon Aug 19 11:20:51 UTC 2013


Package: devscripts
Version: 2.13.2
Severity: normal

Consider this simple script:

#!/bin/sh
printf '%04o\n' $((1 << 0))

Reported error:

error: /tmp/cb.sh:  Unterminated heredoc found, EOF reached. Wanted: <0))>, opened in line 2


-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing'), (99, 'unstable'), (59, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=C, LC_CTYPE= (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash


Cheers,

-- 
Cristian



More information about the devscripts-devel mailing list