summaryrefslogtreecommitdiffstats
path: root/usr.bin/tabs
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2002-06-08 11:33:22 +0000
committertjr <tjr@FreeBSD.org>2002-06-08 11:33:22 +0000
commit477a6083282a284c60c40ebdbabf3ec6478adbcf (patch)
treea18221d66d29c5870a216c42c739b85df21ef52a /usr.bin/tabs
parent74144f756ff12ab0a5be47d5b9b75ac5eff31504 (diff)
downloadFreeBSD-src-477a6083282a284c60c40ebdbabf3ec6478adbcf.zip
FreeBSD-src-477a6083282a284c60c40ebdbabf3ec6478adbcf.tar.gz
Support the "--" end-of-options marker.
Diffstat (limited to 'usr.bin/tabs')
-rw-r--r--usr.bin/tabs/tabs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.bin/tabs/tabs.c b/usr.bin/tabs/tabs.c
index 536f33c..d03a741 100644
--- a/usr.bin/tabs/tabs.c
+++ b/usr.bin/tabs/tabs.c
@@ -115,6 +115,9 @@ main(int argc __unused, char *argv[])
usage();
setenv("TERM", arg, 1);
}
+ } else if (arg[1] == '-') {
+ arg = *++argv;
+ break;
} else {
/* Predefined format */
for (i = 0; i < (int)NELEMS(formats); i++)
OpenPOWER on IntegriCloud