unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Split string into shell words?
@ 2004-01-20 16:56 Kai Grossjohann
  2004-01-20 18:04 ` Stefan Monnier
  2004-01-20 23:19 ` Kevin Rodgers
  0 siblings, 2 replies; 5+ messages in thread
From: Kai Grossjohann @ 2004-01-20 16:56 UTC (permalink / raw)


Given a string as in the following line:

        foo "a b" 'c d' e\ f bar

I'd like a function that returns the following list:

        ("foo" "a b" "c d" "e f" "bar")

That is, the string should be split into words like a shell would
split it into words.

I thought there must be a function in comint*.el or shell*.el
somewhere, but couldn't find it.  Probably I'm blind.

Kai

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-01-28  8:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-20 16:56 Split string into shell words? Kai Grossjohann
2004-01-20 18:04 ` Stefan Monnier
2004-01-28  8:37   ` Kai Grossjohann
2004-01-20 23:19 ` Kevin Rodgers
2004-01-20 23:47   ` Stefan Monnier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).