Wincent Colaiuta <win@xxxxxxxxxxx> writes: > the shorter form without sed is arguably more readable: > > - echo "$head" | sed 's#^refs/heads/##' >"$GIT_DIR/head-name" > + echo "${head#refs/heads/}" >"$GIT_DIR/head-name" Er, I suppose -- if you are acquainted with that particular shell variable syntax (I suspect knowledge of sed is far more widespread). [personally, I know that syntax has something to do with replacing something with something else, but really haven't much clue other than that, and I always _thought_ it was bash-specific and so avoided using any of that stuff.] -miles -- People who are more than casually interested in computers should have at least some idea of what the underlying hardware is like. Otherwise the programs they write will be pretty weird. -- Donald Knuth - 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