[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Sus behaviour when cmd string ends with single backslash
From: |
Robert Elz |
Subject: |
Re: Sus behaviour when cmd string ends with single backslash |
Date: |
Mon, 14 Feb 2022 13:46:21 +0700 |
Date: Sun, 13 Feb 2022 22:38:47 -0600
From: Dennis Williamson <dennistwilliamson@gmail.com>
Message-ID:
<CANaoh6JVN8ssTyE6_GZS_xZdbGMZ3brbgpBzsvwgOyy2WZY5FA@mail.gmail.com>
| It occurs to me that the -r option of read is related.
It is - if a backslash is the final char of input (ie: no newline follows)
when read is used without -r, what happens to that \ will be unspecified.
(With -r the input should simply be preserved, including any \ chars.)
kre