Date:        Mon, 8 Apr 2024 00:29:41 -0400
    From:        John Passaro <john.a.pass...@gmail.com>
    Message-ID:  
<CAJdN7KgU-C9POhVT2tNdfwNrTvwHE=rug6xbvux239mh5mu...@mail.gmail.com>

  | if you wanted this for your script - read all then start semantics, as
  | opposed to read-as-you-execute - would it work to rewrite yourself inside a
  | function?
  |
  | function main() { ... } ; main

It would need to be:

  function main() { ... } ; main "$@"

or perhaps better just:

  main() { ... } ; main "$@"

but with that change, yes it should work almost always (and
can certainly be made to).

kre

Reply via email to