Go to file
Karel Zak 3822032da3 script: script input redirection / eof handling
echo "ps uf" | script

does not work because script assume that stdin is terminal and
it does not forward EOF to the pty.

This patch:

  * make non-tty use-case more robust (don't call tty ioclts to
    non-tty file descriptors.

  * send EOF (CTL('D') control char) to the master channel when
    detected eof by read() on stdin

  * wait for empty master and slave file descriptors to be sure that
    we don't miss date for typescript. This is also necessary to be
    sure that slave channel (shell) is completely initialized otherwise
    EOF is ignored.

Reported-by: Phillip Susi <psusi@ubuntu.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-12-03 13:32:55 +01:00
Documentation docs: update links to http://git.kernel.org/ web repository views 2013-11-12 11:47:57 +01:00
bash-completion cal: added -w|--week for showing week numbers 2013-10-22 10:27:03 +02:00
config build-sys: inform gtk-doc about __ul_attribute__ 2013-03-15 14:58:08 +01:00
disk-utils fsck: add ext4 to list of filesystems with progress bars in fsck man page 2013-11-19 14:46:27 +01:00
fdisks fdisk: fix usage(), -l [<disk>] 2013-11-19 18:30:40 +01:00
include docs: update links to http://git.kernel.org/ web repository views 2013-11-12 11:47:57 +01:00
lib textual: standardize some "cannot read" and "seek failed" error messages 2013-10-09 11:37:38 +02:00
libblkid libblkid: fix sgi PT parser to report system partitions 2013-11-27 16:55:08 +01:00
libfdisk libfdisk: (dos) warn on type 0 2013-11-27 22:04:10 +01:00
libmount pylibmount: correctly import from pylibmount.so 2013-12-02 10:59:31 +01:00
libuuid COPYING: fix grammar of referring phrase, and indicate location better 2013-10-08 15:38:39 +02:00
login-utils sulogin: use dirent->d_type when scans /dev 2013-11-12 12:26:13 +01:00
m4 build-sys: improbe UL_CONFLICT_BUILD macro 2013-08-12 12:59:22 +02:00
misc-utils namei: align missing files with rest of the print out 2013-12-02 10:59:27 +01:00
mount-deprecated docs: standardize the phrases for --help and --version in all man pages 2013-10-15 10:28:30 +02:00
po po: merge changes 2013-10-21 13:20:53 +02:00
schedutils docs: standardize the phrases for --help and --version in all man pages 2013-10-15 10:28:30 +02:00
sys-utils mount man page cleanups 2013-12-02 11:07:07 +01:00
term-utils script: script input redirection / eof handling 2013-12-03 13:32:55 +01:00
tests namei: align missing files with rest of the print out 2013-12-02 10:59:27 +01:00
text-utils hexdump: Create struct hexdump containing previously global variables. 2013-12-02 13:44:24 +01:00
tools build-sys: add --with-smack to config-gen.d 2013-11-12 15:48:42 +01:00
.gitignore nologin: add new command 2013-09-30 13:36:26 +02:00
AUTHORS docs: update AUTHORS file 2013-10-11 13:03:13 +02:00
COPYING docs: corrections to FSF license files, and postal address 2012-02-24 14:13:35 +01:00
ChangeLog build-sys: use AUTOMAKE_OPTIONS = gnu 2011-05-26 15:04:01 +02:00
Makefile.am build-sys: install pylibmount into 2013-08-19 15:24:33 +02:00
NEWS build-sys: release++ (v2.24) 2013-10-21 14:46:27 +02:00
README docs: update links to http://git.kernel.org/ web repository views 2013-11-12 11:47:57 +01:00
README.licensing COPYING: fix grammar of referring phrase, and indicate location better 2013-10-08 15:38:39 +02:00
autogen.sh build-sys: remove unnecessary environment variable 2013-08-23 10:58:34 +02:00
configure.ac libmount: remove smackfs* option when SMACK not enabled 2013-11-12 15:07:12 +01:00

README

                                  util-linux

              util-linux is a random collection of Linux utilities

     Note that in years 2006-2010 this project used the name "util-linux-ng".

MAILING LIST:

      E-MAIL: util-linux@vger.kernel.org
      URL:    http://vger.kernel.org/vger-lists.html#util-linux


DOWNLOAD:

      ftp://ftp.kernel.org/pub/linux/utils/util-linux/


SOURCE CODE:

      Web interface:
          http://git.kernel.org/cgit/utils/util-linux/util-linux.git
          https://github.com/karelzak/util-linux
      Checkout:
          git clone git://git.kernel.org/pub/scm/utils/util-linux/util-linux.git util-linux


NLS (PO TRANSLATIONS):

      PO files are maintained by:
          http://translationproject.org/domain/util-linux.html


VERSION SCHEMA:

      Standard releases:

          <major>.<minor>[.<maint>[.<bugfix>]]

             major = fatal and deep changes
             minor = typical release with new features
             maint = maintenance releases; bug fixes only
             bugfix = unplanned releases for critical/security bugs

      Development releases:

         <major>.<minor>-rc<N>