[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
read -d on a terminal
From: |
Stephane Chazelas |
Subject: |
read -d on a terminal |
Date: |
Thu, 05 Jun 2008 15:14:14 +0100 |
Configuration Information [Automatically generated, do not change]:
Machine: i486
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i486'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL
-DHAVE_CONFIG_H -I. -I../bash -I../bash/include -I../bash/lib -g -O2 -Wall
uname output: Linux ant 2.6.24.2 #2 Tue Apr 22 09:55:40 BST 2008 i686 GNU/Linux
Machine Type: i486-pc-linux-gnu
Bash Version: 3.2
Patch Level: 39
Release Status: release
Description:
Hiya,
is there a way to tell bash *not* to change the termios setting
when using read -d when the fd is a terminal?
I tried
read -u0 -d x var # as in zsh's read -u0 -k 10
read -u4 -d x var 4<&0
to no avail.
I think it's not that much of a useful feature given that it
can be implemented more nicely (i.e. the user can still use
backspace, <Ctrl-W>...) with "stty eol" and standard read or dd,
so it would be nice to be able to disable it.
I'm not saying "read -d" is not useful, just that one may not
want the extra undocumented behavior for terminal fds.
Best regards,
Stephane
- read -d on a terminal,
Stephane Chazelas <=