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

Re: You said the J word



| and es internally has something similar.  as do all other shells, etc.  the  
| question becomes, how do you pass that to an external program?

You have a standard external representation for strings, which you use
to encode the regexp---emacs uses backslashes, rc uses paired quotes,
etc.  When you exec the glob program it will use the agreed upon quoting
rules to decide which characters are literals and which are regexps.
You put those routines in a library so every program can use the same
ones, of course.  If you use the shell to exec the glob program you'd
have to quote the quotes, with a second application of regexp-quote.

	; glob '*.''.*'''