Bug#870309: [checkbashisms] False positive in "sourced script with arguments"

Chris Lamb lamby at debian.org
Mon Jul 31 20:55:11 UTC 2017


Package: devscripts
Version: 2.17.9
Severity: normal

Hi,

I've found a false positive in "sourced script with arguments":

  #!/bin/sh

  . "$(subcmd $arg)"
  . "$(subcmd "$arg")"

.. results in 

  possible bashism in test line 4 (sourced script with arguments):
  . "$(subcmd "$arg")"

Note that the unquoted version on line 3 is not warned about. Not sure
if this is due to the subshell or the implicit nested quotes..


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-



More information about the devscripts-devel mailing list