bug-bash
[Top][All Lists]
Advanced

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

Re: `$x` adds single quotes during interpolation under Wrong Circumstanc


From: Paul Jarc
Subject: Re: `$x` adds single quotes during interpolation under Wrong Circumstances
Date: Fri, 02 Apr 2004 12:46:10 -0500
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux)

philo vivero <phiviv@hacklab.net> wrote:
> It makes a particular function impossible to write

What are you trying to do?  There may be another way.

> double-expansion. First $a is expanded out to "*.log*" *THEN*
> that is further expanded to install.log.syslog.

It's not double expansion; it's two different kinds of expansion
performed in that particular order, as documented in the man page
under EXPANSION:
       The  order  of expansions is: brace expansion, tilde expansion, parame-
       ter, variable and arithmetic expansion and command  substitution  (done
       in a left-to-right fashion), word splitting, and pathname expansion.

> If this is a feature-not-a-bug I really don't mind dropping this
> issue. But I still feel it's a bug. Would you accept a patch?

It's a feature.  Anyway, I'm not the maintainer, so the question is
whether Chet would accept a patch.  But I strongly suspect not, at
least if it changes the default behavior, since that would break
backward compatibility.


paul




reply via email to

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