Date: Mon, 1 Apr 2013 21:56:01 +0200 From: Jilles Tjoelker <jilles@stack.nl> To: John Baldwin <jhb@freebsd.org> Cc: freebsd-current@freebsd.org, freebsd-rc@freebsd.org, Andriy Gapon <avg@freebsd.org> Subject: Re: rc.subr: disabling globbing while processing devfs rules Message-ID: <20130401195601.GA47384@stack.nl> In-Reply-To: <201304011406.50417.jhb@freebsd.org> References: <514D6AC5.8010409@FreeBSD.org> <201304011406.50417.jhb@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Apr 01, 2013 at 02:06:50PM -0400, John Baldwin wrote: > Why not use 'local -' instead of the $- magic? That is: > devfs_rulesets_from_file() > { > local file _err _me - > > ... > set -f > ... > } > That would seem to be simpler. I had mentioned this possibility on IRC, but this feature is specific to Almquist-derived shells (ash) and so something more portable was selected. (It's still not standard because POSIX does not specify "local" but it works on most shells in use.) -- Jilles Tjoelker
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130401195601.GA47384>