diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2022-05-08 08:19:56 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2022-05-08 08:19:56 -0700 |
commit | 4e3ef6118691fce8dcdcd8214c5866a7e5a8c8f3 (patch) | |
tree | e18d0a7f7ef46dfd1435363a13ad9388d9a34c18 /pw.1 | |
parent | 7ff253cfee19cb798096dd0193a67e9663573f92 (diff) | |
download | pw-4e3ef6118691fce8dcdcd8214c5866a7e5a8c8f3.tar.gz pw-4e3ef6118691fce8dcdcd8214c5866a7e5a8c8f3.tar.bz2 pw-4e3ef6118691fce8dcdcd8214c5866a7e5a8c8f3.zip |
Implement -f option: commands from file.
Diffstat (limited to 'pw.1')
-rw-r--r-- | pw.1 | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -856,6 +856,29 @@ sets a head-referenced trigger for the pattern .B ^Failed matching against line 3 of the FIFO. +.IP "\fB-f\fP \fIfile\fP" +Read colon and trigger commands from +.I file +and execute them. + +Each line of +.I file +must contain either a command in the same form as the argument of the +.B -e +option, or else a comment indicated by the first character being +.B # +(hash). + +If any line is diagnosed as erroneous, a diagnostic is issued +and execution continues. In this case, +.I pw +will terminate unsuccessfully after +.I file +is read. + +Command lines with leading whitespace are invalid, and trailing whitespace +counts as a command character (for example, as a constituent of a pattern), + .SH ENVIRONMENT .I pw |