[Top][All Lists]

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

(read -r var) vs <(read -r var) behavior

From: marzevd
Subject: (read -r var) vs <(read -r var) behavior
Date: Sat, 16 May 2015 17:11:33 +0000

Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-unknown-linux-gnu' 
-DCONF_VENDOR='unknown' -DLOCALEDIR='/home/marceloe/share/locale' 
-DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib   -g -O2
uname output: Linux web1.s.nl.spotoption.com 2.6.18-238.12.1.el5 #1 SMP Tue May 
31 13:22:04 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
Machine Type: x86_64-unknown-linux-gnu

Bash Version: 4.3
Patch Level: 30
Release Status: release

        from interactive shell running cat < <(read -r var) prints: 
              bash: read: read error: 0: Input/output error

        on the other hand:
                (read -r var)   reads chars from terminal stdin

         cat < <(read var)

reply via email to

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