From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: info inconsistency about "Shell Commands in Dired" Date: Sun, 22 Aug 2004 14:46:34 -0500 (CDT) Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <200408221946.i7MJkYQ07868@raven.dms.auburn.edu> References: <20040822.131715.41632842.jet@gyve.org> <20040822.214334.197349880.jet@gyve.org> <200408221531.i7MFViU07378@raven.dms.auburn.edu> <20040823.010311.112628025.jet@gyve.org> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1093204045 5482 80.91.224.253 (22 Aug 2004 19:47:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 22 Aug 2004 19:47:25 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 22 21:47:19 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ByyJD-0007rp-00 for ; Sun, 22 Aug 2004 21:47:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1ByyNd-0002OK-FB for ged-emacs-devel@m.gmane.org; Sun, 22 Aug 2004 15:51:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1ByyNV-0002Ne-Vl for emacs-devel@gnu.org; Sun, 22 Aug 2004 15:51:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1ByyNV-0002N1-88 for emacs-devel@gnu.org; Sun, 22 Aug 2004 15:51:45 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1ByyNV-0002My-4s for emacs-devel@gnu.org; Sun, 22 Aug 2004 15:51:45 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ByyIz-00041V-QC for emacs-devel@gnu.org; Sun, 22 Aug 2004 15:47:06 -0400 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.10/8.12.10) with ESMTP id i7MJl0uE019058; Sun, 22 Aug 2004 14:47:01 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.6+Sun/8.11.6) id i7MJkYQ07868; Sun, 22 Aug 2004 14:46:34 -0500 (CDT) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: jet@gyve.org In-reply-to: <20040823.010311.112628025.jet@gyve.org> (message from Masatake YAMATO on Mon, 23 Aug 2004 01:03:11 +0900 (JST)) 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: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:26409 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:26409 Your environment variable suggestion is not as easy as it appears. First of all, we can not leave things up to the shell. We have to scan for ${DIRED} or $DIRED ourselves first, because we need to know whether it occurs to see whether we have to run the shell command just once or once for each file. Now trouble starts. Emacs will expand the * in: ' * ' Does the $DIRED in the following count or not? That is, does it get expanded and does it cause the command to run just once? '${DIRED}' Since it is a substitute for * it should "count", but since it is a quoted environment variable it should not count. Sincerely, Luc.