From: Jonathan Nieder Date: Mon, 30 Jan 2012 19:03:21 GMT Subject: Re: [PATCH v2 4/4] completion: be nicer with zsh Message-ID: <20120130190321.GD22549@burratino> In-Reply-To: Felipe Contreras wrote: > On Mon, Jan 30, 2012 at 8:25 PM, Jonathan Nieder wrote: >> : is a no-op command.  It does not redirect stderr automatically or >> do any other magical thing. > > Why don't you go ahead and try it? > > bash -c ': echo "err" > /dev/stderr' : is a no-op command. If you have any questions after reading about it in your manual or online help system of choice, I'll be happy to answer them. [...] > Maybe '[' then. Honestly, I don't care. :) (If I had to choose a convention for scripts specific to ksh-style shells, in order of preference, I would rank them: 1. Always use [[. 2. Use "test", spelled out, like the portable shell code in git does. 3. Use [. If you have arguments for one convention or another that are compelling enough that the codebase won't be flipping back and forth and a patch to go along with them, I imagine no one will mind.) By the way, since I forget to say enough: thanks for taking care about this code. Simpler code is definitely a good thing. Regards, Jonathan