Re: Quoting special characters (was: Re: Possible solution for special characters in makefile paths)

"David A. Wheeler" <[email protected]>
Newsgroups gmane.comp.gnu.make.devel
Message-ID <[email protected]>
> > > Assume there are two files, "foo bar" and "ba\z qu'x". What
> > > does/should happen here?
> >
> > $wildcard could return «foo\ bar ba\\z\ qu\'x» (without the outer
> > quotes) or some such.

Another approach is for it to return
«foo barTABba\z qu'x» where TAB is the \t character.
The TAB character is also permitted in most Unix-like filesystems,
but practically no one except attackers actually USES this functionality.
This approach is not tied to any particular shell scripting syntax, and
it means that the individual filenames are pristine.

(It's possible to also use NEWLINE, but since shells and many other
languages start new commands on newline, that's probably even less convenient.)

--- David A. Wheeler


_______________________________________________
Make-alpha mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/make-alpha
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.