From owner-freebsd-questions Mon Dec 27 9: 2:16 1999 Delivered-To: freebsd-questions@freebsd.org Received: from dorifer.heim3.tu-clausthal.de (dorifer.heim3.tu-clausthal.de [139.174.243.252]) by hub.freebsd.org (Postfix) with ESMTP id 3944F15283 for ; Mon, 27 Dec 1999 09:02:13 -0800 (PST) (envelope-from olli@dorifer.heim3.tu-clausthal.de) Received: (from olli@localhost) by dorifer.heim3.tu-clausthal.de (8.8.8/8.8.8) id SAA28477 for freebsd-questions@FreeBSD.ORG; Mon, 27 Dec 1999 18:02:12 +0100 (CET) (envelope-from olli) Date: Mon, 27 Dec 1999 18:02:12 +0100 (CET) From: Oliver Fromme Message-Id: <199912271702.SAA28477@dorifer.heim3.tu-clausthal.de> To: freebsd-questions@FreeBSD.ORG Subject: Re: cons25 && (midc, /stand/sysinstall, etc) Organization: Administration TU Clausthal Reply-To: freebsd-questions@FreeBSD.ORG MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: TIN [version 1.2 RZTUC(3) PL2] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Duke Normandin wrote in list.freebsd-questions: > From: Oliver Fromme > >#!/bin/sh - > >midc "$@" > >vidcontrol ... [whatever] > > > >Save the above as /usr/local/bin/mc, chmod 755 it, and you > >should be done. > > Thanks for the script example! What does the "$@" do/mean? It will preserve all command-line options and arguments (including any whitespace), and forward them to midc as-is. See the explanation of ``@'' in the section "Special Parameters" in the manpage of sh. Regards Oliver -- Oliver Fromme, Leibnizstr. 18/61, 38678 Clausthal, Germany (Info: finger userinfo:olli@dorifer.heim3.tu-clausthal.de) "In jedem Stück Kohle wartet ein Diamant auf seine Geburt" (Terry Pratchett) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message