Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Sep 2002 15:26:47 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Roman Neuhauser <neuhauser@bellavista.cz>
Cc:        freebsd-questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: set fnord foo
Message-ID:  <20020930202647.GA7147@dan.emsphone.com>
In-Reply-To: <20020930104434.GM30361@freepuppy.bellavista.cz>
References:  <20020930104434.GM30361@freepuppy.bellavista.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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