aboutsummaryrefslogtreecommitdiffstats
path: root/ed.1
diff options
context:
space:
mode:
authornytpu <alex@nytpu.com>2021-05-31 15:56:46 -0600
committernytpu <alex@nytpu.com>2021-06-01 13:30:48 -0600
commit06d04aabda6ada9f47e556c5e8bca146e1eb5be2 (patch)
tree73135a736ab470a125297b6ca82c2e2bce39f51b /ed.1
parentclarify incorrect comments (diff)
downloaded-06d04aabda6ada9f47e556c5e8bca146e1eb5be2.tar.bz2
ed-06d04aabda6ada9f47e556c5e8bca146e1eb5be2.zip
add -l flag for loose exit status
Diffstat (limited to 'ed.1')
-rw-r--r--ed.115
1 files changed, 15 insertions, 0 deletions
diff --git a/ed.1 b/ed.1
index 0ec0e08..9d69240 100644
--- a/ed.1
+++ b/ed.1
@@ -15,6 +15,7 @@
.Sh SYNOPSIS
.Nm
.Op Fl h
+.Op Fl l
.Op Fl p Ar string
.Op Fl s
.Op Fl v
@@ -33,6 +34,20 @@ interactively or via a script.
.Bl -tag -width indent
.It Fl h
Display simplified usage information.
+.It Fl l
+Use a
+.Dq loose exit status .
+Even if a command has an error
+.Pq a failed regex, for instance
+exit successfully.
+Useful when using
+.Nm
+as an editor for
+.Xr git 1
+or
+.Xr cron 8 ,
+where a failure exit status could discard all modifications, even if they were
+valid.
.It Fl p Ar string
Use
.Ar string