Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/usr.bin/printf



    Date:        Sun, 28 Jun 2020 22:58:52 +0300
    From:        Valery Ushakov <uwe%stderr.spb.ru@localhost>
    Message-ID:  <20200628195852.GC20145%pony.stderr.spb.ru@localhost>

  | but I'd expect people that actually use IFS with octal digits
  | or a backslash to also understand and know how to add necessary
  | quoting in that case.

You'd think so, right, but ...   and that assumes that the person
writing the printf code (copying the example from the man page) knows
what IFS is, or that it might have been altered.

  | Though perhaps it makes sense to them back for
  | pedagogical purposes.

That, and because it simply is the right way to code in sh 99% of the
time - omitting needed quotes is a major source of bizarre bugs.   When
they're like this, and only trigger in unusual circumstances, they're ever
harder to find.

kre



Home | Main Index | Thread Index | Old Index