From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: start-process somehow expands *.org Date: Tue, 1 Mar 2011 03:51:08 +0100 Message-ID: References: <19820.22901.674486.120802@fencepost.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1298947911 11127 80.91.229.12 (1 Mar 2011 02:51:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 1 Mar 2011 02:51:51 +0000 (UTC) Cc: Emacs developers To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 01 03:51:44 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PuFgc-0002Sd-30 for ged-emacs-devel@m.gmane.org; Tue, 01 Mar 2011 03:51:42 +0100 Original-Received: from localhost ([127.0.0.1]:50743 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PuFgb-0004x8-92 for ged-emacs-devel@m.gmane.org; Mon, 28 Feb 2011 21:51:41 -0500 Original-Received: from [140.186.70.92] (port=50854 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PuFgS-0004rr-8T for emacs-devel@gnu.org; Mon, 28 Feb 2011 21:51:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PuFgQ-0001P7-TN for emacs-devel@gnu.org; Mon, 28 Feb 2011 21:51:31 -0500 Original-Received: from mail-ew0-f41.google.com ([209.85.215.41]:48266) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PuFgP-0001Og-I2; Mon, 28 Feb 2011 21:51:29 -0500 Original-Received: by ewy10 with SMTP id 10so1568783ewy.0 for ; Mon, 28 Feb 2011 18:51:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=duWBmBEGLOtx9ytu9ipeFFwUaW1+jIbfYQaHRol4tBE=; b=k8DgMlBgSqjNBk0xEJuajmc3jk4k9m6aAofx3m3fVntr3eGN9LgzWpehus2iPaqacG bjaa82CWRxDF6lcI1hoY2OcNCzovtw2JxWwnCYuSp5MJfMLFMtH0oKrKn82IC3UxVRyx wHpyC+xHwZeXGkrfY+5qcjkRHlgOgNzb0MWQs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=gEx5P094kcNMYEPnGHE78pBfgSCYkuhrlEQ9l6WUrpH9LunaCRy0RKlsEfVoDPaR8l HEadFSJR/p9L+A4S0pcJO2EaQsk5ffrYPba1W6m5wwqGaEzGtqhPSuChkL+S154bylqP mrB5mD3gVsayWNYc/FFcTcK8ONzaDn0orf9b4= Original-Received: by 10.213.30.13 with SMTP id s13mr2147308ebc.81.1298947888141; Mon, 28 Feb 2011 18:51:28 -0800 (PST) Original-Received: by 10.213.108.136 with HTTP; Mon, 28 Feb 2011 18:51:08 -0800 (PST) In-Reply-To: <19820.22901.674486.120802@fencepost.gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.215.41 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:136633 Archived-At: On Tue, Mar 1, 2011 at 3:27 AM, Glenn Morris wrote: > > Lennart Borgman wrote (on Tue, 1 Mar 2011 at 03:07 +0100): > >> I am calling start-process with one of the program-args beeing >> "*.org". Somehow this is expanded to just the first of matching file. >> >> What is happening? Is this the way it is supposed to work? > > Will you PLEASE learn to give complete examples, rather than always > this "I saw a thing; is it a problem?" kind of mail. Sorry, I thought I was clear enough. start-process has a "&rest" arg called "program-args". > Maybe the following is relevant, how should I know what you doing. > > Functions that Create Subprocesses > > =C2=A0 All three of the subprocess-creating functions have a `&rest' > =C2=A0 argument, ARGS. The ARGS must all be strings, and they are supplie= d > =C2=A0 to PROGRAM as separate command line arguments. Wildcard characters > =C2=A0 and other shell constructs have no special meanings in these > =C2=A0 strings, since the strings are passed directly to the specified > =C2=A0 program. Yes, it might be relevant. However I do not understand what is happening. I have something like this (setq command ("ruby.exe" "c:\\path-to\\idxsearch.rb" "--root" "c:/where-to-search/" "--filepatt" "*.org" "--query" "word1,word2") (apply 'start-process (downcase mode-name) outbuf command) It looks like idxsearch.rb recieves the first file matching *.org, in my case "act.org" - instead of "*.org" as I expected. It might be ruby.exe that expands *.org, but if I try a similar command line ruby.exe does not expand *.org. This is on w32, as usual with my patched version.