From: Junio C Hamano Date: Thu, 26 Feb 2009 17:04:51 GMT Subject: Re: [PATCHv2 4/4] git submodule: Fix handling of // and /.. in paths for added submodules Message-ID: <7vtz6ht9ho.fsf@gitster.siamese.dyndns.org> In-Reply-To: <49A65B4C.305@drmicha.warpmail.net> Michael J Gruber writes: > Junio C Hamano venit, vidit, dixit 25.02.2009 22:25: > >> The sed scripts in the more important parts of scripted Porcelains avoid >> multiple commands on a single line concatenated with ";" mostly by inertia >> on my side, but it was acquired exactly from this kind of portability >> mess. IIRC, AIX's was the worst offender. It also got "/A/../B/ { ... }" >> wrong in earlier versions. > > I'm a bit confused now. Are you saying that "git-submodule.sh" should > avoid the multiple lines in sed (which work in AIX 4.3.3)? No, I understand J6t's comment: >>> I don't know... Let's see: My AIX 4.3.3 sed understands it if it is not >>> all on a single line, and that says a lot. Specifically, I tried this: to mean that this is bad: sed -e 'a;b;c;d;e' while this works sed -e ' a b c d e '