Johannes Sixt <j.sixt@xxxxxxxxxxxxx> writes: > Am 5/8/2012 13:24, schrieb Erik Faye-Lund: >> + git show-ref | !grep "(null)" > ... >> Now, doing this doesn't make my test above pass, > > It is unlikely to pass if you used this test script literally, because > > $ !grep > !grep: command not found > > "!" is not an operator in a shell script. Insert a space. Good eyes. Also wouldn't it be a bit pointless to grep for (null) in the first place? It comes only because a particular implementation of vsnprintf() happens to emit it when asked to turn a NULL pointer into a string, and on other platforms it is allowed to segfault. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html