GitXplorerGitXplorer
r

script

public
66 stars
4 forks
0 issues

Commits

List of commits on branch master.
Verified
6b88bc5b535f74d978c4d83d5628fbefb2595276

Merge pull request #1 from awmorgan/fix_doc_typo

rrobpike committed 4 years ago
Unverified
e7068cc81a8147ff6769766e6b43d2e95f21a037

script: fix doc typo

aawmorgan committed 4 years ago
Unverified
42b1d41d4cca9b0bcfce6bcc0f0a693219527186

script: change argument order to allow multi-word commands

rrobpike committed 5 years ago
Unverified
82251ecf15d239464596c9a41128efec0592288e

README: add topic sentence.

rrobpike committed 5 years ago
Unverified
d33199d7d47f63a2dd3eb41f352072b31514a473

script: fix vet error in log.Fatal call

rrobpike committed 5 years ago
Unverified
c905faee8b6e4ac94f7f6db96a4c4500cd0b0dab

script: initial commit

rrobpike committed 5 years ago

README

The README file for this repository.

Script is an interactive driver for a line-at-a-time command language such as the shell. It takes no arguments.

It reads each line of the script file, waiting for a newline on standard input to proceed. After receiving a newline, it prints the next line of of the script and also feeds it to a single running command instance, which prints the output of the command to standard output. Thus script serves as a way to control the sequential input to the command and thus supervise its activities.

The argument file is in whatever format the command normally accepts. Comments, in whatever single-line form the command accepts, will be passed to the command but can serve as documentation during execution. There is no facility to send more than one line of input at a time.

Normally the user types an empty line to proceed, advancing to the next line of the script. But a non-empty line is passed to the command without advancing the script, allowing the user to inject extra commands.