From: Jakub Narebski Date: Mon, 29 Jan 2007 12:43:54 GMT Subject: Re: [PATCH] Replace perl code with pure shell code Message-ID: In-Reply-To: <86zm82dpql.fsf@blue.stonehenge.com> Randal L. Schwartz wrote: >>>>>> "Simon" == Simon 'corecode' Schubert writes: > > Simon> + destname="refs/$branch_top/${name#refs/heads/}" ;; > > I don't think this is portable shell. At least Perl is the same everywhere. > Ignore me if this is a shell syntax on something other than bash. I think ${var#pattern} is a POSIX shell syntax. Nevertheless Perl embedded in shell script is (a bit) horrible. -- Jakub Narebski Warsaw, Poland ShadeHawk on #git