[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fwd: read -n is confused by \
From: |
Brett Kail |
Subject: |
Fwd: read -n is confused by \ |
Date: |
Thu, 26 Jan 2006 22:51:32 -0600 |
Hello,
This is a resend of a message I sent back in May since I never
received a reply to that message.
-Brett
---------- Forwarded message ----------
From: Brett Kail <bjkail@gmail.com>
Date: May 18, 2005 9:17 PM
Subject: read -n is confused by \
To: bug-bash@gnu.org
Hello,
Description:
If the nth character of read -n is a \, then bash reads one too
many characters.
Repeat-By:
echo 'abc\abc' | (read -n 4; echo $REPLY)
Additionally, the documentation for 'read' is unclear what happens for
\ when -r is not specified in that it does not distinguish between
"maximum number of characters read" and "maximum number of characters
read into the variable".
-Brett
- Fwd: read -n is confused by \,
Brett Kail <=