help-gnu-emacs
[Top][All Lists]
Advanced

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

Split string into shell words?


From: Kai Grossjohann
Subject: Split string into shell words?
Date: Tue, 20 Jan 2004 17:56:42 +0100
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.2 (gnu/linux)

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


reply via email to

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