bug-bash
[Top][All Lists]
Advanced

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

read not terminated with EOF/^D when -n or -N is used


From: Isaac Good
Subject: read not terminated with EOF/^D when -n or -N is used
Date: Sun, 26 Dec 2010 18:19:37 -0500
User-agent: Mutt/1.5.21 (2010-09-15)

Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' 
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/ locale' -DPACKAGE='bash' -DSHELL 
-DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib   -march=i686 -mtune=generic -O2 
-pipe -DDEFAULT_PATH_VALUE='/usr/local/bin:/usr/bin:/ 
bin:/usr/local/sbin:/usr/sbin:/sbin' 
-DSTANDARD_UTILS_PATH='/usr/bin:/bin:/usr/sbin:/sbin' 
-DSYS_BASHRC='/etc/bash.bashrc' -DSYS_BASH_LOGOUT='/etc/bash.bash_logout'
uname output: Linux arch 2.6.35-ARCH #1 SMP PREEMPT Tue Sep 21 11:00:23 UTC 
2010 i686 Pentium III (Katmai) GenuineIntel GNU/Linux
Machine Type: i686-pc-linux-gnu

Bash Version: 4.1
Patch Level: 9
Release Status: release



read <ENTER><^D>       -> the EOF terminates read and it exists with a false 
exist status.
read -n4 <ENTER><^D>   -> the ^D is read by read and stored in REPLY. read does 
not terminate.



reply via email to

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