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

Re: [PATCH] Replace perl code with pure shell code

From
Junio C Hamano <junkio@cox.net>
Date
Jan 30, 2007, 10:57 UTC
Message-ID
<7vlkjkzss9.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<86fy9udmf6.fsf@blue.stonehenge.com>
merlyn@stonehenge.com (Randal L. Schwartz) writes:
Show 7 quoted lines
>>>>>> "Nikolai" == Nikolai Weibull <now@bitwi.se> writes:
>
> Nikolai> We do require a POSIX-compliant version of sh already, right?
>
> OK, sorry for raising the flag.  I just know that writing portable shell
> is far trickier than writing portable Perl, so I get overly cautious
> on anything that wasn't in Unix V7.

You seem to be as old fashioned as I am (I grew up with V7 shell). People complained often enough how antiquated my shell script (hence many but not all git Porcelain-ish) style is.

I have tried very hard to reject "Hey, it's in POSIX -- we'll use it and screw platforms that are not exactly POSIX". I only use POSIX as a yardstick to decide what to stay away from, as in "Let's not use ${parameter//pattern/string} -- it is not _even_ in POSIX".

Previous: Randal L. SchwartzNext: Jakub Narebski
Message 10 of 12 in “Replace perl code with pure shell code”
  1. Replace perl code with pure shell codeSimon 'corecode' Schubert, Jan 29, 2007
  2. Junio C HamanoJan 29, 2007
  3. Replace perl code with pure shell codeSimon 'corecode' Schubert, Jan 29, 2007
  4. Shawn O. PearceJan 29, 2007
  5. Randal L. SchwartzJan 29, 2007
  6. Nikolai WeibullJan 29, 2007
  7. Randal L. SchwartzJan 29, 2007
  8. Nikolai WeibullJan 29, 2007
  9. Randal L. SchwartzJan 29, 2007
  10. Junio C HamanoJan 30, 2007
  11. Jakub NarebskiJan 29, 2007
  12. Randal L. SchwartzJan 29, 2007

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.