Re: shell compatibility issues with SunOS 5.10

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

 



Nguyen Thai Ngoc Duy schrieb:
> I did "make test" on a SunOS 5.10 and it failed. With the below patch,
> only t7400 and t8005 kept failing. For the first case, t7400.5 failed
> because extensive use of sed to normalize path in git-submodule.sh
> 
> 	# normalize path:
> 	# multiple //; leading ./; /./; /../; trailing /
> 	path=$(printf '%s/\n' "$path" |
> 		sed -e '
> 			s|//*|/|g
> 			s|^\(\./\)*||
> 			s|/\./|/|g
> 			:start
> 			s|\([^/]*\)/\.\./||
> 			tstart
> 			s|/*$||
> 		')

There was a lengthy thread that lead to this version of the sed
expression. Could you please tell what your sed has to say about it? It
works even on AIX 4.3.3.

-- Hannes

--
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]