Re: Control characters in declare output

2018-11-13 Thread L A Walsh
On 10/31/2018 11:01 PM, Rob Foehl wrote: Prompted (pun intended) by the recent thread on detecting missing newlines in command output, I'd had another look at my own version, and discovered a potential issue with control characters being written as-is in declare output. Minimal (harmless)

Re: Control characters in declare output

2018-11-01 Thread Chet Ramey
On 11/1/18 2:01 AM, Rob Foehl wrote: > Prompted (pun intended) by the recent thread on detecting missing newlines > in command output, I'd had another look at my own version, and discovered a > potential issue with control characters being written as-is in declare > output.  I don't see it as

Control characters in declare output

2018-11-01 Thread Rob Foehl
Prompted (pun intended) by the recent thread on detecting missing newlines in command output, I'd had another look at my own version, and discovered a potential issue with control characters being written as-is in declare output. Minimal (harmless) reproducer: ╶➤ x () { echo