From: Matthieu Moy Date: Fri, 07 Oct 2016 14:31:16 GMT Subject: Re: [PATCH/RFC] git.c: support "!!" aliases that do not move cwd Message-ID: In-Reply-To: Johannes Schindelin writes: > Hi Matthieu, > > On Fri, 7 Oct 2016, Matthieu Moy wrote: > >> Another possibility: !(nocd), which leaves room >> for !(keyword1,keyword2,...) if needed later. Also, it is consistent >> with the :(word) syntax of pathspecs. > > But is this backwards-compatible? Don't we execute everything that comes > after the exclamation mark as a command-line via shell, where the > parentheses mean "open a subshell"? Good point. I can imagine someone already having [alias] foo = !(cd bar && $something) && $something_else Your proposed (keyword)! is better. -- Matthieu Moy http://www-verimag.imag.fr/~moy/