From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Masatake YAMATO Newsgroups: gmane.emacs.devel Subject: Re: info inconsistency about "Shell Commands in Dired" Date: Mon, 23 Aug 2004 01:03:11 +0900 (JST) Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <20040823.010311.112628025.jet@gyve.org> References: <20040822.131715.41632842.jet@gyve.org> <20040822.214334.197349880.jet@gyve.org> <200408221531.i7MFViU07378@raven.dms.auburn.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1093190793 11969 80.91.224.253 (22 Aug 2004 16:06:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 22 Aug 2004 16:06:33 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 22 18:06:27 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 1ByurS-0006XC-00 for ; Sun, 22 Aug 2004 18:06:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Byuvs-0007AR-Do for ged-emacs-devel@m.gmane.org; Sun, 22 Aug 2004 12:11:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Byuve-00077a-7U for emacs-devel@gnu.org; Sun, 22 Aug 2004 12:10:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Byuvc-00077G-Fl for emacs-devel@gnu.org; Sun, 22 Aug 2004 12:10:45 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Byuvc-000776-Bc for emacs-devel@gnu.org; Sun, 22 Aug 2004 12:10:44 -0400 Original-Received: from [210.130.136.40] (helo=r-maa.spacetown.ne.jp) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ByuqO-0003BB-0X for emacs-devel@gnu.org; Sun, 22 Aug 2004 12:05:20 -0400 Original-Received: from localhost (h219-110-074-165.catv01.itscom.jp [219.110.74.165]) by r-maa.spacetown.ne.jp (8.11.6) with ESMTP id i7MG5BE05110; Mon, 23 Aug 2004 01:05:11 +0900 (JST) Original-To: teirllm@dms.auburn.edu In-Reply-To: <200408221531.i7MFViU07378@raven.dms.auburn.edu> <20040822.214334.197349880.jet@gyve.org> X-Mailer: Mew version 4.0.62 on Emacs 21.3.50 / Mule 5.0 (SAKAKI) 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:26404 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:26404 Before continuing discussion, I'd like to add explanation which I forget writing in the last mail. I wrote: > How about passing file names via environment variables? > So the user can specify the environment variables to use the file names. > > We use ${dired} for the replacement of `?'; and ${DIRED} for the > replacement of `*'. Prepend "export dired=...; export DIRED=...;" > to the command line given from the user. "export dired=...; export DIRED=...;" is perpend to the command line by dired automatically. I misused an imperative form, "Prepend". I should use "Dired prepends". Go back to the discussion. Luc Teirlinck worte: > How about passing file names via environment variables? > So the user can specify the environment variables to use the file names. > > We use ${dired} for the replacement of `?'; and ${DIRED} for the > replacement of `*'. Prepend "export dired=...; export DIRED=...;" > to the command line given from the user. > > ${dired} is as long to type as `echo ? `. I am not even sure that > `echo ? ` is really a joke as David suggested. Having to use > something that is somewhat funny looking is not too bad if you only > have to do it very infrequently. Normally, the user should use ? and *. The user can ignore the environment variables. If you tihnk ${dired} is too long, we can introduce shorter variable name. In some case we don't have to use `{' and `}', as you know. The biggest advantage of this method is that it is not tricky. If one knows the shell script syntax, s/he can use this method. In other hand, about `?' and `*', I have to read *Help* buffer for ` dired-do-shell-command' and the info document when "uuencode ? ? > ?.uu" generates a file, ?.uu. About `echo ? `, I don't want to explain this technique for my wife:-P Masatake YAMATO