From: Johannes Sixt Date: Tue, 28 Apr 2009 14:51:00 GMT Subject: Re: [PATCHv2] Add --reference option to git submodule. Message-ID: <49F717D4.70708@viscovery.net> In-Reply-To: <49F702C0.8030206@drmicha.warpmail.net> Michael J Gruber schrieb: > BTW, even dash has "test STRING" so portability doesn't require -n but I > think it's OK either way. It is not if STRING is user input; it could be, e.g., '-f', and then the command gives a syntax error because of a missing argument. It's safer to use test -z and test -n unless the string to test is completely under the control of the script. -- Hannes