Closed panlinux closed 6 years ago
It was added by @gaweinbergi in pmem/pmdk#2133. Glenn: any comment on the proposed change?
If the file is truly not executable, then it's fine not to have the #! line - although I'd also suggest executable and non-executable scripts should not both use the .sh suffix.
Correct about the .sh
suffix. I forgot to mention that I'm installing the file without it, otherwise bash completion won't source the file.
In the "old" location in /etc/bash_completion.d
, the .sh
suffix was allowed (as was any other), but in the new recommended path at /usr/share/bash-completion/completions/
that's not the case. There, only .bash
or no extension at all work. See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=814599
Thanks guys, @plebioda volunteered to fix this (drop .sh suffix, drop shebang & fix installation)
Merged to master and stable-1.4. Will be part of 1.4.1 release.
While packaging pmdk 1.4, I got this lintian error about
src/tools/pmempool/pmempool.sh
:https://lintian.debian.org/tags/script-not-executable.html
Turns out bash completion scripts should not have the interpreter line, and that was the case with the nvml 1.3.1 release. If you check all the files in
/usr/share/bash-completion/completions/
, none have it, and none are executable either.So I propose to simply drop the interpreter line from
src/tools/pmempool/pmempool.sh
: