Date: Tue, 2 Sep 1997 09:31:30 -0400 (EDT) From: adrian@virginia.edu To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: docs/4449: documentation error for sh(1) manpage Message-ID: <199709021331.JAA18616@briton.nvl.virginia.edu> Resent-Message-ID: <199709021340.GAA06435@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 4449 >Category: docs >Synopsis: The -c flag is not documented in the sh(1) manapge. >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Tue Sep 2 06:40:01 PDT 1997 >Last-Modified: >Originator: Adrian Filipi-Martin >Organization: UVA >Release: FreeBSD 2.2.1-RELEASE i386 >Environment: Stock system. >Description: There is no mention of the '-c' option for sh(1) in the manpage. At least searching for '-c' only find '-C' which is another argument all together. N.B. The problem still exists on 2.2.2-STABLE-XXXXXX. >How-To-Repeat: man sh >Fix: Apply the following patch to sh.1. Note that I think there should be a non-breaking space between the 'arg' and the '...' as well as between '-c' and 'string' to prevent poor line wrapping. --- sh.1.orig Tue Sep 2 09:13:27 1997 +++ sh.1 Tue Sep 2 09:26:17 1997 @@ -40,7 +40,7 @@ .SH NAME sh \- command interpreter (shell) .SH SYNOPSIS -sh [-/+aCefnpuvxIimsVEb] [-/+o longname] [arg ...] +sh [-/+aCefnpuvxIimsVEb] [-/+o longname] [-c string] [arg ...] .SH DESCRIPTION .LP Sh is the standard command interpreter for the system. @@ -137,6 +137,11 @@ -a allexport Export all variables assigned to. (UNIMPLEMENTED for 4.4alpha) +.TP +-c interpret command +Pass the string argument to the shell to be interpreted as input. +Keep in mind that this option only accepts a single string as its +argument, hence multi-word strings must be quoted. .TP -C noclobber Don't overwrite existing files with ``>''. >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199709021331.JAA18616>