summaryrefslogtreecommitdiffstats
path: root/usr.bin/script
Commit message (Collapse)AuthorAgeFilesLines
* Deal with double whitespace.ru2004-07-031-1/+1
|
* Mechanically kill hard sentence breaks.ru2004-07-021-4/+8
|
* Bumped document date.ru2004-05-191-2/+2
| | | | Fixed markup nit.
* Attempt #2 to fix script(1) if the standard input is closed: If wecperciva2004-02-151-1/+3
| | | | | | | | | | | | | | | | read EOF from STDIN_FILENO, write zero bytes into the pseudo-terminal; this is interpreted as an EOF by the program being scripted. I've tested this with two non-interactive scripts: # echo 5 | script foo sh -c 'read x; sleep $x; echo bar' # echo bar | xargs script foo echo and one interactive program: # script foo more /etc/passwd and everything seems to work properly... PR: bin/56166, bin/57414, ports/57415, ports/60534 Approved by: rwatson (mentor) MFC after: 2 weeks
* Back out part of 1.21, since it breaks `script interactive-program`. Thiscperciva2004-01-271-2/+1
| | | | | | | | | re-breaks non-interactive portupgrade (or at least old versions of portupgrade); I'll see if I can put together a solution which avoids breaking anything later. Approved by: rwatson (mentor) Noticed by: Stefan Farfeleder, Joshua Goodall
* Fix SYNOPSIS of manual page, clustering no-arg options correctly.sheldonh2004-01-222-4/+2
| | | | Sync usage with manpage.
* Two fixes for script(1):cperciva2004-01-221-11/+22
| | | | | | | | | | | | | 1. Don't do tty stuff to stdin if stdin isn't a tty. 2. When running in non-interactive mode, don't select(2) on the standard input. This un-breaks non-interactive portupgrade. PR: bin/59036 [1] PR: bin/56166, bin/57414, ports/57415, ports/60534 [2] MFC after: 7 days Approved by: rwatson (mentor)
* Introduce arguments the standard way. In .Ar command ..., ... is not ancharnier2003-09-071-4/+4
| | | | argument, command is.
* ANSIify function definitions.dwmalone2002-09-041-10/+6
| | | | | | | | | Add some constness to avoid some warnings. Remove use register keyword. Deal with missing/unneeded extern/prototypes. Some minor type changes/casts to avoid warnings. Reviewed by: md5
* Use POSIX macros for wait(2)-style status information instead of themike2002-06-031-3/+3
| | | | | deprecated 4.2/4.3BSD wait union. Fix some nearby pid_t/int confusion.
* Use `The .Nm utility'charnier2002-04-201-6/+9
|
* remove __Pimp2002-03-221-6/+6
|
* Minor style stuff, use __FBSDID(), remove to-be-default WARNS=2.markm2001-12-122-9/+8
|
* Style improvements recommended by Bruce as a follow up to somedwmalone2001-12-101-1/+1
| | | | | | | | of the recent WARNS commits. The idea is: 1) FreeBSD id tags should follow vendor tags. 2) Vendor tags should not be compiled (though copyrights probably should). 3) There should be no blank line between including cdefs and __FBSDIF.
* Warns cleanups. Add FreeBSD ID.dwmalone2001-12-032-2/+4
|
* Use STD{ERR,IN,OUT}_FILENO instead of their numeric values. Thesheldonh2001-07-261-1/+1
| | | | | | | definitions are more readable, and it's possible that they're more portable to pathalogical platforms. Submitted by: David Hill <david@phobia.ms>
* Remove whitespace at EOL.dd2001-07-151-3/+3
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* Fix the type of the NULL arg to execl()brian2001-07-091-1/+1
| | | | Idea from: Theo de Raadt <deraadt@openbsd.org>
* Nuke unused variables.dd2001-06-241-1/+0
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-1/+1
|
* Don't call warn() with no format string.kris2000-07-101-2/+2
|
* Make a run-on sentence into two proper sentences, and clarify the meaninggreen2000-03-061-3/+2
| | | | a bit.
* Remove more single-space hard sentence breaks.sheldonh2000-03-021-1/+2
|
* Remove single-space hard sentence breaks. These degrade the qualitysheldonh2000-03-011-1/+2
| | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
* Fix grammar error. (missing verb)billf1999-12-131-1/+1
|
* Adjust man page: if command is specified, file name is mandatoryguido1999-11-241-2/+1
|
* $Id$ -> $FreeBSD$peter1999-08-282-2/+2
|
* Pass as argv[0] the name of the shell executed instead of "sh".sheldonh1999-08-111-2/+2
| | | | | | PR: 2851 Reported by: era@iki.fi Obtained from: NetBSD
* Mention default time between output flushes in manual page.jkoshy1998-09-291-2/+3
| | | | | PR: docs/8009 Submitted by: Stefan Eggers <seggers@semyam.dinoco.de>
* Fix the following bugs:des1998-09-191-19/+27
| | | | | | | | | | | | | | | | | - if a command was specified and script(1) failed to execute it, it would print the name of your shell in the error message instead of that of the command that failed. - since finish() was installed as a SIGCHLD handler, it would often run before the main loop had had time to process the last few bytes of output. This resulted in very strange truncated error messages. - script(1) would almost always return with an exit status of 0, even if the command returned a non-zero exit status. This broke my 'build world, install it and rebuild the kernel' scripts because 'make installworld' would run even if 'make buildworld' had failed.
* Fix a bunch of spelling errors.steve1998-06-041-2/+2
| | | | | PR: 6856 Submitted by: Josh Gilliam <josh@quick.net>
* Rewrite script as a select loop rather than as a twin reader/write process.peter1998-03-082-75/+96
| | | | | This allows simple logging of keys sent to a session (turned on with -k). Also allow specifying the script file flush interval.
* Fix typo while copying patch from the 2.2 system that it came frompeter1997-12-301-3/+3
| | | | Use execvp rather than execv so that full paths are not needed.
* script(1) has annoyed me with it's inflexable command argument parsingpeter1997-12-292-14/+43
| | | | | since I first saw it. I finally needed to pass arguments through to the spawned command badly enough (and urgently) that I threw this together.
* Add usage(). Use err(3) instead of local redefinition.charnier1997-08-082-42/+24
|
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-1/+1
| | | | posix standard on the topic.
* Don't use __dead or __pure in user code. They were obfuscationsbde1996-09-141-7/+7
| | | | | | for gcc >= 2.5 and no-ops for gcc >= 2.6. Converted to use __dead2 or __pure2 where it wasn't already done, except in math.h where use of __pure was mostly wrong.
* Delete bogus referneces to timezone code internal header file `tzfile.h',wollman1995-08-071-2/+1
| | | | which is no longer bogusly installed in /usr/include.
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-273-0/+398
OpenPOWER on IntegriCloud