]> git.ipfire.org Git - thirdparty/util-linux.git/commit
script.1: Improve documentation of non-interactive behavior
authorStanislav Brabec <sbrabec@suse.cz>
Fri, 13 Feb 2015 18:59:22 +0000 (19:59 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 16 Feb 2015 09:49:36 +0000 (10:49 +0100)
commitab52a8bcce2f01bb44d3c2266e19b32e9639084b
treef938f29a44c2d494dd4d01f2ab01849543966eab
parent8fd4a7aa81d2bd65dd586a6c0de989d1abdae8a4
script.1: Improve documentation of non-interactive behavior

- use exit in .profile to avoid non-logged session after typing "exit"
- document that script can read more from stdin than the command inside:

echo -e 'script -c "read a b ; echo a=\$a b=\$b >defs.sh"\n1 2\necho Done' | sh
Script started, file is typescript
1 2
echo Done
Script done, file is typescript
term-utils/script.1