svn commit: r291929 - head/tools/tools/nanobsd

Ian Lepore ian at freebsd.org
Mon Dec 7 18:13:42 UTC 2015


On Mon, 2015-12-07 at 10:24 +0000, Warner Losh wrote:
> Author: imp
> Date: Mon Dec  7 10:24:38 2015
> New Revision: 291929
> URL: https://svnweb.freebsd.org/changeset/base/291929
> 
> Log:
>   Make sure to quote the arg after -n and -z tests.
> 

While I am generally a quoting fanatic and would much rather overquote
than underquote in shell scripts, fyi it's not actually needed for the 
-n and -z tests.  test(1) and shells seem to be smart enough to see the
']' (which is just an arg to test, not shell language syntax) and know
there isn't a string in front of it.

-- Ian


More information about the svn-src-head mailing list