bug-bash
[Top][All Lists]
Advanced

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

read -n is confused by \


From: Brett Kail
Subject: read -n is confused by \
Date: Wed, 18 May 2005 22:17:13 -0500

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]