Johannes Sixt [off-list ref] writes:
Am 5/8/2012 13:24, schrieb Erik Faye-Lund:
quoted
+ git show-ref | !grep "(null)"
...
quoted
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.