Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Mar 1997 17:43:51 -0800 (PST)
From:      Curt Sampson <cjs@portal.ca>
To:        Terry Lambert <terry@lambert.org>
Cc:        perry@piermont.com, thorpej@nas.nasa.gov, joerg_wunsch@uriah.heep.sax.de, hackers@freebsd.org, port-i386@NetBSD.ORG, darrenr@cyber.com.au
Subject:   Re: how to name fs specific programs
Message-ID:  <Pine.NEB.3.96.970325174121.11795L-100000@cynic.portal.ca>
In-Reply-To: <199703260022.RAA26405@phaeton.artisoft.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 25 Mar 1997, Terry Lambert wrote:

> 	# call the correct command for the correct type for the
> 	# provided device or mount point.  Each FS specific mount
> 	# will ignore the "-T" option, so it is OK to pass the full
> 	# argument list without parsing it out.
> 
> 	$FSBIN/$FSTYPE/$FSCMD $ARGS
> ...
> 	for i in *
> 	do
> 		# for each FS for which an "fstyp" exists..
> 		if test -x $i/fstyp
>		then
>			[stuff]
>...

So what you're saying is that the above is significantly better than

    $FSCMD_$FSTYPE $ARGS

and

    for i in *_fstyp; do [stuff] ...

Or am I missing something here?

cjs

Curt Sampson    cjs@portal.ca	   Info at http://www.portal.ca/
Internet Portal Services, Inc.	   Through infinite myst, software reverberates
Vancouver, BC  (604) 257-9400	   In code possess'd of invisible folly.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96.970325174121.11795L-100000>