Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Jan 1998 19:21:41 +0300 (MSK)
From:      "Sergei S. Laskavy" <laskavy@pc759.cs.msu.su>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   docs/5415: sh(1): { echo -n "hello"; echo " world" } > greeting
Message-ID:  <199801021621.TAA20498@pc759.cs.msu.su>
Resent-Message-ID: <199801021630.IAA10878@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         5415
>Category:       docs
>Synopsis:       sh(1): mistake in example
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan  2 08:30:00 PST 1998
>Last-Modified:
>Originator:     Sergei S. Laskavy
>Organization:
Gambit Automated Design
>Release:        FreeBSD 2.2.5-STABLE i386
>Environment:

$Id: sh.1,v 1.9.2.5 1997/11/12 04:34:33 jdp Exp $

>Description:

In the sh(1) man page there is a small mistake in example:
	host% man sh | grep example
           { echo -n "hello"; echo " world" } > greeting

>How-To-Repeat:

	man sh | grep example
or
	{ echo -n "hello"; echo " world" } > greeting

>Fix:

I sent the patch already, but... sendmail(8) killed my letter,
because I'm on dialup link, and my hostname sometimes is not legal.

Add ";" after " world":
	{ echo -n "hello"; echo " world"; } > greeting
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801021621.TAA20498>