better-comments icon indicating copy to clipboard operation
better-comments copied to clipboard

Add Ignore First Line to shell scripts and Perl Scripts or ability to Toggle

Open laeven opened this issue 6 years ago • 3 comments

I'd like to request that shell scripts and Perl scripts have their first line ignored by comments since they're typically paired with shebangs. I can understand if Perl one-liners end up not having them so maybe creating an override so this request doesn't have to be made would be more useful.

laeven avatar Nov 22 '19 17:11 laeven

It isn't only Perl, shell scripts have this issue as well.

rafifos avatar Dec 16 '19 17:12 rafifos

same issue here for Python scripts and some Dockerfiles if using docker-entrypoint.sh with shebangs.

liamsuma avatar Aug 05 '20 18:08 liamsuma

I think this only really matters if the sequence on the first line literally starts with #!/ As the shebang sequence is generally #! but in practice the executable is nearly always a full path such as #!/bin/bash or even #!/usr/bin/env python or whatever.

I would like to see this corrected... seeing red on the first line of shell scripts makes me think something is wrong.

Related to #238

tracker1 avatar Oct 29 '21 22:10 tracker1