Thread (1 message) 1 message, 1 author, 2016-10-07

Re: [PATCH/RFC] git.c: support "!!" aliases that do not move cwd

From: Matthieu Moy <hidden>
Date: 2016-10-07 14:33:24

Johannes Schindelin [off-list ref] writes:
Hi Matthieu,

On Fri, 7 Oct 2016, Matthieu Moy wrote:
quoted
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/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help