Re: [PATCH] Replace perl code with pure shell code
Randal L. Schwartz wrote:
Show 6 quoted lines
>>>>>> "Simon" == Simon 'corecode' Schubert <corecode@fs.ei.tum.de> 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