autoconf-patches
[Top][All Lists]
Advanced

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

Re: [PATCH 1/2] docs: mention cd limitation


From: Eric Blake
Subject: Re: [PATCH 1/2] docs: mention cd limitation
Date: Mon, 02 Aug 2010 07:15:05 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.7) Gecko/20100720 Fedora/3.1.1-1.fc13 Lightning/1.0b2pre Mnenhy/0.8.3 Thunderbird/3.1.1

On 07/31/2010 10:47 AM, Ralf Wildenhues wrote:
> * Paolo Bonzini wrote on Sat, Jul 31, 2010 at 11:24:50AM CEST:
>>   cd "${var:-.}"
> 
> Is :- portable now?

We still recommend against it in the manual.  But Solaris /bin/sh
supports it, and according to http://www.in-ulm.de/~mascheck/bourne/, it
was added in SysIII in 1981, while shell functions appeared in SVR2 in
1984, and shell functions with local $@ in SVR3 in 1986.  Since we
depend on the latter for most m4sh targest, should we start testing for
it in m4sh, and claiming that it is portable within configure scripts?

-- 
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]