autoconf-patches
[Top][All Lists]
Advanced

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

Re: AS_SET_UNEXPANDED_ARGS proposal


From: Paul Eggert
Subject: Re: AS_SET_UNEXPANDED_ARGS proposal
Date: Thu, 25 Aug 2005 10:11:45 -0700
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

Stepan Kasal <address@hidden> writes:

> # AS_SET_ARGS(ARGS, [IFS-VALUE])
> # ------------------------------
> # Calls `set' to set args, temporarily disabling pathname expansion
> # (if the shell supports it).  If IFS-VALUE is given, IFS is temporarily
> # changed to it.
> #
> m4_define([AS_SET_ARGS],
> [m4_ifval([$2], [IFS='$2'; ])dnl
> $ac_do_noglob; set x $something; shift; $ac_do_glob[]dnl
> m4_ifval([$2], [; IFS=$as_default_IFS])[]dnl
> ])
>
> Would you agree with this?

Yes, that looks like a good start; thanks.  Obviously there's more
work to do (e.g., "$something", and most importantly modifying the
documentation and the rest of Autoconf to use it) but this is a good
way to go.

One minor comment; perhaps it'd be better to replace IFS='$2' with
IFS=$2 so that the user can use shell variables, apostrophes, etc.




reply via email to

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