From: Junio C Hamano Date: Tue, 30 Jan 2007 10:57:10 GMT Subject: Re: [PATCH] Replace perl code with pure shell code Message-ID: <7vlkjkzss9.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <86fy9udmf6.fsf@blue.stonehenge.com> merlyn@stonehenge.com (Randal L. Schwartz) writes: >>>>>> "Nikolai" == Nikolai Weibull 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".