[ProgClub programming] Command names

Jedd Rashbrooke jedd.rashbrooke at gmail.com
Thu Jun 11 22:30:08 AEST 2020


On Thu, 11 Jun 2020 at 22:20, John Elliot V | ProgClub <jj5 at progclub.org>
wrote:

> That is rather more perl than I had imagined!
>

 Why would someone that held up sloccount as an example of ... something or
other ... need to imagine what it was going to reveal?

 And yes, a disturbing amount of perl.

 Curiously:


*royksopp:/usr/bin$ ( for i in `file * | grep -i perl | awk -F':' '{print
$1}'`; do head -1 ${i}; done  ) | sort | uniq -c*











*     7 #! /usr/bin/perl    235 #!/usr/bin/perl      1 #!/usr/bin/perl
     1 #!/usr/bin/perl5.26-x86_64-linux-gnu      1
#!/usr/bin/perl5.28-x86_64-linux-gnu      1
#!/usr/bin/perl5.30-x86_64-linux-gnu      6 #!/usr/bin/perl -T -w     15 #!
/usr/bin/perl -w     63 #!/usr/bin/perl -w      1 #!/usr/bin/perl -wl
     1 #!/usr/bin/perl -w -pi.old      5 #!/usr/bin/perl -wT*
 (plus one ELF that seems to have been caught out incorrectly, which we'll
ignore here)

 So, there's 7 files that misunderstand how hash bang works, three that
still rely on perl v5, and 91 that use the -w (warnings) flag ... which is
an odd thing to use in these circumstances.

 What a time to be alive.


jj5 at tact:/usr/bin$ ll *.pl *.rb *.sh *.py
>

 Not everyone has your aliases.

 But you're right - there's these 6 occurrences on my system:

*royksopp:/usr/bin$ ls | grep  "\.sh$" *







*amuFormat.sh gettext.sh gvmap.sh kdevplatform_shell_environment.sh
kpa-backup.sh nvidia-bug-report.sh *
  .... out of *4138* files in /usr/bin.

 Undeniably, one of our points has been spectacularly well made.

 j.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.progclub.org/pipermail/programming/attachments/20200611/5334843e/attachment-0001.htm>


More information about the programming mailing list