From owner-freebsd-questions@FreeBSD.ORG Sun Dec 31 11:36:00 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C2C3216A403 for ; Sun, 31 Dec 2006 11:36:00 +0000 (UTC) (envelope-from lane@joeandlane.com) Received: from elasmtp-dupuy.atl.sa.earthlink.net (elasmtp-dupuy.atl.sa.earthlink.net [209.86.89.62]) by mx1.freebsd.org (Postfix) with ESMTP id 824CE13C442 for ; Sun, 31 Dec 2006 11:36:00 +0000 (UTC) (envelope-from lane@joeandlane.com) Received: from [66.47.111.183] (helo=joeandlane.com) by elasmtp-dupuy.atl.sa.earthlink.net with asmtp (Exim 4.34) id 1H0yyt-00024z-RZ; Sun, 31 Dec 2006 06:36:00 -0500 Received: from joeandlane.com (localhost.localnet.local [127.0.0.1]) by joeandlane.com (8.13.8/8.13.1) with ESMTP id kBVBcRIs073146; Sun, 31 Dec 2006 05:38:27 -0600 (CST) (envelope-from lane@joeandlane.com) Received: from localhost (localhost [[UNIX: localhost]]) by joeandlane.com (8.13.8/8.13.1/Submit) id kBVBcQXm073145; Sun, 31 Dec 2006 05:38:26 -0600 (CST) (envelope-from lane@joeandlane.com) X-Authentication-Warning: joeandlane.com: lholcombe set sender to lane@joeandlane.com using -f From: Lane To: George Date: Sun, 31 Dec 2006 05:38:26 -0600 User-Agent: KMail/1.9.4 References: <20061230150403.GA4674@host.my.domain> <200612301822.09750.lane@joeandlane.com> <20061231075220.GA1020@home> In-Reply-To: <20061231075220.GA1020@home> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200612310538.26533.lane@joeandlane.com> X-CD-SOLUTIONS-MailScanner-Information: Please contact the ISP for more information X-CD-SOLUTIONS-MailScanner: Found to be clean X-CD-SOLUTIONS-MailScanner-From: lane@joeandlane.com X-ELNK-Trace: e56a4b6ca9bdfda11aa676d7e74259b7b3291a7d08dfec793473783cbf308d222299a45d2a861433350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 66.47.111.183 Cc: questions@freebsd.org Subject: Re: Is there reference manual for sh? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Dec 2006 11:36:00 -0000 On Sunday 31 December 2006 01:52, George wrote: > On Sat, Dec 30, 2006 at 06:22:09PM -0600, Lane wrote: > > On Saturday 30 December 2006 12:22, a@zeos.net wrote: > > > On Sat, Dec 30, 2006 at 10:16:20AM -0500, Robert Huff wrote: > > > > a@zeos.net writes: > > > > > > I need any online complete manual on sh, not a brief as it is man > > > sh. The last one doesn't describe many features both interactive > > > (command line editing, using history interactively, and many others) > > > and scripting (for example, conditional expressions). > > > > Here's a "brute-force" manual: > > > > #!/bin/sh > > for each in `find /etc/rc.d` > > do more $each > > done > > Bonus points for not using cat, but it sounds like you're recommending a > manual you yourself haven't read. > > $ for each in /etc/rc.d/* ; do more $each ; done > > Or skipping the unecessary logic: > > $ more /etc/rc.d/* > > Sarcasm is mostly counterproductive, doncha think? I do, George. But I'm not sure you actually share that notion. > > > If you need more than what is there then you probably need Kernigan > > and Ritchie's The "C" Programming Language, (still) available on > > amazon.com. > > My guess is the OP is inquiring about scripting in general, but bash(1) > and readline(3) in particular. If that's the case, the manpages should > be more than adequate; a reading of Mendel Cooper's Advanced Bash > Scripting Guide (available for free at a Google search near you) would > also be useful for a practical perspective. Recommending the K&R book I > don't think is appropriate. I'm sorry that you felt the need to tell me, and the whole world, that. He said he needed "brief" but not as brief as "man sh" I said, by example, "use these tools which are here," in as clear and readable a form as I could, owing to the near certainty that the OP was unfamiliar with the language form(s). Then I followed up with a recommendation for further reading which, regardless of your apparent encyclopedic knowledge of the subject, is exactly what I recommended: Further reading if the OP needs more functionality than could be deduced from a study of the basic startup scripts for freebsd. Whatever "tone" you are hearing is not emanating from my email. lane