git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: uncommon shell code

From
RWRobert Watson <robert.oo.watson@gmail.com>
Date
Sep 23, 2005, 08:32 UTC
Message-ID
<72499e3b05092301322a145e52@mail.gmail.com>
In-Reply-To
<7vu0gclpyo.fsf@assigned-by-dhcp.cox.net>
On 9/22/05, Junio C Hamano <junkio@cox.net> wrote:
Show 11 quoted lines
> Robert Watson <robert.oo.watson@gmail.com> writes:
>
> > I found the following shell code in git-tag.sh (and others):
>
> My fault; see point 2. in this article:
>
>         http://marc.theaimsgroup.com/?l=git&m=112386506308820&w=2
>
> Please either get used to it or wait until I decide to modernize
> the scripts wholesale, whichever comes first.
>

I see. I thought I was old fashioned by sticking to test instead of [] (that is your point 1), but obviously I am not old enough ;)

Well, it's fine now that I know what it is. But it hurts readability, and probably it's a good idea to simplify it. Any reasonable shell should built-in test(1)?

Robertoo
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 4 in “uncommon shell code”
  1. Robert WatsonSep 22, 2005
  2. Junio C HamanoSep 22, 2005
  3. Robert WatsonSep 23, 2005
  4. Junio C HamanoSep 23, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.