From owner-freebsd-questions Mon Sep 30 13:26:58 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F26437B401 for ; Mon, 30 Sep 2002 13:26:57 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id F3BC143E75 for ; Mon, 30 Sep 2002 13:26:56 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.6/8.12.5) id g8UKQlsM038933; Mon, 30 Sep 2002 15:26:47 -0500 (CDT) (envelope-from dan) Date: Mon, 30 Sep 2002 15:26:47 -0500 From: Dan Nelson To: Roman Neuhauser Cc: freebsd-questions Subject: Re: set fnord foo Message-ID: <20020930202647.GA7147@dan.emsphone.com> References: <20020930104434.GM30361@freepuppy.bellavista.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020930104434.GM30361@freepuppy.bellavista.cz> X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In the last episode (Sep 30), Roman Neuhauser said: > could anyone tell me what $subject does? i can't find any > explanation. man pages for sh(1) (freebsd) and bash(1) (linux) don't > mention fnord. > > what does it do? The set command will set $1, $2, etc as though the arguments were passed to the script itself on the commandline. So after a "set fnord foo", you could do $ echo $# 2 $ echo $1 fnord $ echo $* fnord foo As for what fnord does? It gives you a headache. -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message