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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Randal L. Schwartz wrote:

>>>>>> "Simon" == Simon 'corecode' Schubert <corecode@xxxxxxxxxxxx> 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


-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]