Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > muc.lists.netbsd.tech.userlevel > #11684

odd script(1) behavior - script bug, man bug, ?

From Greg Troxel <gdt@lexort.com>
Newsgroups muc.lists.netbsd.tech.userlevel
Subject odd script(1) behavior - script bug, man bug, ?
Date 2025-12-16 08:42 -0500
Organization Newsgate at muc.de e.V.
Message-ID <rmildj2k0fh.fsf@s1.lexort.com> (permalink)

Show all headers | View raw


In running bup regression tests, it basically does


  script -q -c "/path/to/bup/under/test some bup args" /dev/null

to ensure that the program is tested with a tty as input, separately
from just running it.

I have been running  the test suite "< /dev/null > CHECK.foo 2&1" more
or less.

This results in the top-level script exiting because no characters are
available on stdin, even though the program is still running.


So:

  Does script(1) (not specified by POSIX) require that stdin is a tty?

  Does it say that if there is EOF on stdin, then script should exit,
  whether or not the program being run has exited?

  Is this just a bug, that EOF on script stdin should lead to perceived
  EOF on the program being run's (pty) stdin?  And that script should
  only exit when the program exits?


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de

Back to muc.lists.netbsd.tech.userlevel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

odd script(1) behavior - script bug, man bug, ? Greg Troxel <gdt@lexort.com> - 2025-12-16 08:42 -0500
  Re: odd script(1) behavior - script bug, man bug, ? Mouse <mouse@Rodents-Montreal.ORG> - 2025-12-16 11:11 -0500
    Re: odd script(1) behavior - script bug, man bug, ? Greg Troxel <gdt@lexort.com> - 2025-12-16 12:05 -0500
      Re: odd script(1) behavior - script bug, man bug, ? Mouse <mouse@Rodents-Montreal.ORG> - 2025-12-16 12:28 -0500
        Re: odd script(1) behavior - script bug, man bug, ? Greg Troxel <gdt@lexort.com> - 2025-12-16 12:45 -0500
          Re: odd script(1) behavior - script bug, man bug, ? Mouse <mouse@Rodents-Montreal.ORG> - 2025-12-16 12:57 -0500
            Re: odd script(1) behavior - script bug, man bug, ? Greg Troxel <gdt@lexort.com> - 2025-12-16 13:11 -0500
  Re: odd script(1) behavior - script bug, man bug, ? RVP <rvp@SDF.ORG> - 2025-12-17 09:11 +0000

csiph-web