Ævar Arnfjörð Bjarmason <avarab@xxxxxxxxx> writes: >> + git stash create > actual && >> + test $(cat actual | wc -l) -eq 0 > ... > Although I wonder in this case whether you don't actually mean: > > [...]>actual && > ! test -s actual > > I.e. isn't the test that there should be no output, not that there > shouldn't be a \n there? Good suggestion. There is "test_must_be_empty" you may want to use. Also, we do not leave SP between the redirection operator and the filename. Your example ">actual" is good; the original goes against our style. Thanks.