Date:        Fri, 28 Jan 2022 09:51:50 +0000
    From:        "Geoff Clare via austin-group-l at The Open Group" 
<[email protected]>
    Message-ID:  <20220128095150.GB29095@localhost>

  | Christoph Anton Mitterer wrote, on 28 Jan 2022:

  | > result="$(command ; e=$?; print '.' ; exit $?)"

  | result="$(some_command && printf '.')" || exit

What's the obsession you all seem to have with putting the period in quotes?

Why?   You don't have printf in quotes (you could), not even $? (in the exit,
where it might be needed if IFS happens to contain digits), and while they're
not useful for anything, the quotes around the command substitution I kind of
understand the reason for, but around a . ??  Do you also write main'.'c
(or 'main.c') ??

kre


              • ... Eric Blake via austin-group-l at The Open Group
              • ... Christoph Anton Mitterer via austin-group-l at The Open Group
              • ... Christoph Anton Mitterer via austin-group-l at The Open Group
              • ... Thorsten Glaser via austin-group-l at The Open Group
              • ... Christoph Anton Mitterer via austin-group-l at The Open Group
              • ... shwaresyst via austin-group-l at The Open Group
              • ... Geoff Clare via austin-group-l at The Open Group
              • ... Christoph Anton Mitterer via austin-group-l at The Open Group
              • ... Geoff Clare via austin-group-l at The Open Group
              • ... Christoph Anton Mitterer via austin-group-l at The Open Group
          • ... Robert Elz via austin-group-l at The Open Group
      • Re:... mirabilos via austin-group-l at The Open Group
        • ... Christoph Anton Mitterer via austin-group-l at The Open Group
  • Re: does POS... Robert Elz via austin-group-l at The Open Group

Reply via email to