From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Tury Newsgroups: gmane.emacs.help Subject: avoid interpretation of \n, \t, ... in string Date: Tue, 27 Jan 2009 09:13:36 -0800 (PST) Organization: http://groups.google.com Message-ID: <665cbb9b-8140-489e-a4d8-a15acce224be@r37g2000prr.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1233078684 13964 80.91.229.12 (27 Jan 2009 17:51:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Jan 2009 17:51:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 27 18:52:37 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LRs6s-0001mK-15 for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Jan 2009 18:52:26 +0100 Original-Received: from localhost ([127.0.0.1]:41760 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LRs5a-0001kJ-1f for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Jan 2009 12:51:06 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!r37g2000prr.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 17 Original-NNTP-Posting-Host: 212.117.81.29 Original-X-Trace: posting.google.com 1233076416 31176 127.0.0.1 (27 Jan 2009 17:13:36 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 27 Jan 2009 17:13:36 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: r37g2000prr.googlegroups.com; posting-host=212.117.81.29; posting-account=Xb8sGQoAAABwL3BYvXXbA1TD0PsAYrcM User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.61 (Windows NT 6.0; U; en) Presto/2.1.1,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.0 www-proxy.eed.ericsson.se:8080 (squid/2.5.STABLE14) Original-Xref: news.stanford.edu gnu.emacs.help:166385 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:61706 Archived-At: Hi, I would like to pass paths to shell (extrenal command line programs) on MS Windows. The paths may contain \n, \t etc. (Eg. c: \directory-1\new-dir\temp...). However, the string is "evaluated" and only the result arrives to the shell program. (In the above example: c: \directory-1 ew-dir emp...) I try to use `call-process-shell-command'. I know I could use double back-slash (e.g. c:\directory-1\\new-dir\ \temp...), but I want to be able to handle any paths in their "natural" form. How to do it? Thanks, P