From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Newsgroups: gmane.emacs.help Subject: Re: counsel-dired-jump error "find: paths must precede expression:" Date: Fri, 19 Jan 2018 11:11:07 +0100 Message-ID: <20180119101107.GD7809@tuxteam.de> References: <20180118023907.ccrcmi6gizigzhr6@s70206.gridserver.com> <20180119081302.55smxz7fuoon4433@s70206.gridserver.com> <87lggu9o3s.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1516356594 27686 195.159.176.226 (19 Jan 2018 10:09:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 19 Jan 2018 10:09:54 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 19 11:09:49 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ecTcL-0006pT-HJ for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Jan 2018 11:09:49 +0100 Original-Received: from localhost ([::1]:39902 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ecTeJ-0002DT-Ic for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Jan 2018 05:11:51 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48609) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ecTdn-0002Bh-ML for help-gnu-emacs@gnu.org; Fri, 19 Jan 2018 05:11:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ecTdj-00040w-AC for help-gnu-emacs@gnu.org; Fri, 19 Jan 2018 05:11:19 -0500 Original-Received: from mail.tuxteam.de ([5.199.139.25]:37947) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ecTdj-0003s5-0F for help-gnu-emacs@gnu.org; Fri, 19 Jan 2018 05:11:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=20171004; h=From:In-Reply-To:Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID:Subject:To:Date; bh=NVdC1IENwyTRESlrj0ep7hGOYP3eU58jjepV6d5U5uI=; b=PIgV4d7jxQkMTdnBCw02EBO89/5IlrjuXsHigWr7hnlRPfB91YsG7zV02EQmFy7puQVWAxhRRAlC8In966CLPa5/449dTm9f1mLta7N6ESQ15TmLnbGBWbivAAQnfLPM4ElbSrKFysy4WkBzAj12B5h8lZLJWT8LpivUv1HysvUWITGpPc+AMeAUA+VFIjwvjWhfPvjUw9ZyLIl4IhcIDOvZE4RBKZiPh6jAsKj2hXuNRcRThlQABcDSiaVhZ38O5KkWzNcORWsTKxF/gHX/cqi9V3TYfj61qjUnnMXh1Hf9vYj4qnRyJ2GPUYG1MYLh8PkIy+ia4EmTDZB2mCJQbg==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1ecTdb-0002oR-Tz for help-gnu-emacs@gnu.org; Fri, 19 Jan 2018 11:11:07 +0100 In-Reply-To: <87lggu9o3s.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 5.199.139.25 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:115791 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, Jan 19, 2018 at 10:47:35AM +0100, Robert Pluim wrote: > John Magolske writes: > > > looking into this further, I found a quoted wildcard resolves the issue: > > > > (shell-command-to-string > > (concat find-program " -path './*' -type d -not -path '*\/.git*'")) > > > > Seems to behave pretty much the same, except that all the directory > > file-paths displayed in the minibuffer are now preceded with a ./ > > What's wrong with using "find ." instead of "find './*'"? They are at least different: I don't know whether that is relevant here. With "find .", the start set is the current directory; it would also find files and subdirs of "." whose name starts with a dot. With "find ./*", the shell would have a go at expanding ./* into the list of entries of the current directory: find's start set would be that list, as expanded by the shell. By default[1], that expansion excludes entries whose name start with a dot (thus the -not -path ... up there seems superfluous). Cheers [1] But cf "shopt dotglob" for bash, for example. Shells tend to vary in this department. Note that the shell expansion of ./* can vary even more wildly, cf. bash's "set noglob". - -- tomás -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlphxDsACgkQBcgs9XrR2kaGJwCfY+3Jf3ScGiLDVnY0nyUtdaMd MfMAn2zVmOgsALLgwoCQwzSwR0syWYwc =2ZOs -----END PGP SIGNATURE-----