Re: [PATCH v5 4/4] pretty: test --expand-tabs
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 5, 2016, 06:25 UTC
- Message-ID
- <xmqqfuv04lnv.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <20160405014703.GA29953@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 13 quoted lines
> On Mon, Apr 04, 2016 at 09:10:46PM -0400, Eric Sunshine wrote: > >> > + count=$1 ;# expected tabs >> >> Why semicolon before the hash here and above? > > I am in the habit of doing this, too. I have a vague recollection of > getting bitten by a shell that treated: > > echo foo # bar > > or something similar as not-a-comment. But neither bash, dash, nor ksh > seem to.
I think the reason why I started doing the same is because some shells can be configured to lose the comment-introducer-ness of "#" in interactive mode, and I wanted to make sure that many things I write can be tried out by others more easily by copy-and-paste to their interactive session.