* David Kastrup (2005-08-13) writes: > [[ is bash-only. Don't use it.
Note that this is not an extended bash test command ([[ <condition> ]]) but a quoted simple test command ([ <condition> ]). Is [ <condition> ] a bashism as well? > And iteration seems like overkill. That's just fallout of my limited knowledge. (c: > AC_DEFUN(AC_SHELL_QUOTIFY_ONCE, > [ > case :$1: in $quotified_vars) ;; > *) AC_SHELL_QUOTIFY([$1]) > export quotified_vars=$quotified_vars:$1: > esac > ] Hm, slightly nicer than my version. (c; > Perhaps we should make something like > AC_EXPORT_QUOTIFIED > > which will export and protect the variable? AC_SHELL_QUOTIFY would > then always check whether there is a protection active. > > I mean, we don't have to protect against multiple quotification except > in the export case, right? Yes. With my proposal you would have used AC_SHELL_QUOTIFY_ONCE only on the exported variables as well. Your suggestion is a bit more specialized and it makes the intention clearer, which is good. -- Ralf _______________________________________________ auctex-devel mailing list [email protected] http://lists.gnu.org/mailman/listinfo/auctex-devel
