On 08/05/2011 07:58 AM, Thien-Thi Nguyen wrote:
() Bruce Korb<bk...@gnu.org>
() Fri, 05 Aug 2011 06:19:03 -0700

          4     tmpd=`mktemp -d ${TMPDIR:-/tmp}/err-names-XXXXXX`

IIRC, constructs like:

   ${TMPDIR:-/tmp}

can be made more portable:

   ${TMPDIR-/tmp}

by removing the colon before the dash.

Not true. Use of : is portable to all shells that support functions, which is pretty much every shell out there today (including Solaris /bin/sh). Autoconf has already proved this point.

--
Eric Blake   ebl...@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Reply via email to