diff options
| author | Toby Goodwin <toby@paccrat.org> | 2018-03-17 18:36:15 +0000 |
|---|---|---|
| committer | Toby Goodwin <toby@paccrat.org> | 2018-03-17 18:36:15 +0000 |
| commit | 2dd0aa249c9bac4e5c616d1f386dc4271fdbab46 (patch) | |
| tree | 973fff29c8728ec9a1bf7f53a8b613a214c5c809 /rc.1 | |
| parent | 1128baa58acaff32e4538d5878b916fba091c574 (diff) | |
| parent | 54ccf74c675696318b697182573a86668fe36f50 (diff) | |
Merge branch 'master' into ifnot
Diffstat (limited to 'rc.1')
| -rw-r--r-- | rc.1 | 30 |
1 files changed, 30 insertions, 0 deletions
@@ -1717,6 +1717,36 @@ If no argument is given, the current value of .Cr $status is used. .TP +\fBflag\fR \fIf\fR [ \fB+\fR | \fB\-\fR ] +Test, set (\fB+\fR), or reset (\fB\-\fR) command-line flag +.IR f . +For example, a script that requires ``exit if command fails'' semantics can say +.Ds +.Cr "flag e +" +.De +.TP +\& +Some flags cannot be set or reset using +.BR flag , +but they can still be tested. These are +.BR c , +.BR d , +.BR l , +.BR o , +.BR p , +and +.BR s . +As a special case, +.Cr "flag i" +operates on +.BR rc 's +internal +.IR interactive +flag, which may have been set by +.Cr -i +on the command line, or if standard input was a terminal; there is no +.Cr "flag I" . +.TP \fBlimit \fR[\fB\-h\fR] [\fIresource \fR[\fIvalue\fR]] Similar to the .IR csh (1) |