File: example-shell-script-fails-syntax-check.tag

package info (click to toggle)
lintian 2.129.0
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 71,680 kB
  • sloc: perl: 46,081; javascript: 9,151; makefile: 4,058; sh: 3,044; ansic: 714; xml: 518; python: 91; java: 15; cpp: 9; tcl: 4; lisp: 3
file content (12 lines) | stat: -rw-r--r-- 522 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
Tag: example-shell-script-fails-syntax-check
Severity: pedantic
Check: script/syntax
Explanation: Running this shell script with the shell's -n option set fails,
 which means that the script has syntax errors. The most common cause of
 this problem is a script expecting <code>/bin/sh</code> to be bash checked on
 a system using dash as <code>/bin/sh</code>.
 .
 Run e.g. <code>sh -n yourscript</code> to see the errors yourself.
 .
 Note this can have false-positives, for an example with bash scripts
 using "extglob".