←back to thread

185 points thunderbong | 1 comments | | HN request time: 0.201s | source
1. AdieuToLogic ◴[] No.43649199[source]
One of my favourite old-school Perl magic spells used to portably handle broken shells is:

  #!/usr/bin/perl
  eval 'exec /usr/bin/perl -S $0 ${1+"$@"}'
    if 0;
See: https://www.perl.com/article/bang-bang/