From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 24 17:26:13 2012 Received: (at submit) by debbugs.gnu.org; 24 Oct 2012 21:26:13 +0000 Received: from localhost ([127.0.0.1]:60097 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TR8Sq-0003aZ-Oi for submit@debbugs.gnu.org; Wed, 24 Oct 2012 17:26:13 -0400 Received: from eggs.gnu.org ([208.118.235.92]:52099) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TR8P3-0003Tv-Ky for submit@debbugs.gnu.org; Wed, 24 Oct 2012 17:22:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TR8N1-0002Cp-CR for submit@debbugs.gnu.org; Wed, 24 Oct 2012 17:20:12 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:56545) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TR8N1-0002Cl-9L for submit@debbugs.gnu.org; Wed, 24 Oct 2012 17:20:11 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38934) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TR8Mz-0003gG-KI for bug-gnu-emacs@gnu.org; Wed, 24 Oct 2012 17:20:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TR8Mx-00029Z-D8 for bug-gnu-emacs@gnu.org; Wed, 24 Oct 2012 17:20:09 -0400 Received: from mail-ob0-f169.google.com ([209.85.214.169]:54091) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TR8Mx-000261-7U for bug-gnu-emacs@gnu.org; Wed, 24 Oct 2012 17:20:07 -0400 Received: by mail-ob0-f169.google.com with SMTP id va7so1059394obc.0 for ; Wed, 24 Oct 2012 14:20:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=gGPgpKuDHGROcCdV+DrNeDun0En2nIRn3TeUBJsjULo=; b=UDD5VdyJ08f44pfRzA0IAIdkm/wrL2sQtzRan1k9mOjRYae6k9yMe2H5fZsW/b+LCv Ofgk+TwlBIRcshIyR65LKmqGKVtxcEV+NgFX1M9w/leNntLKDmiHAdX7QRgb8YKJXmKc xhAPHlSwp9hWNxAoGfa9RNmceK/OyfGO6viAFvvkNgEP3+gYjYJDBKV7VAlFNS5ibD/Z 2Yyy7M5AXi5u5tcaeH8XKWIWsIUIJBNyspuyChCqu47bjvFLSp9r7HyctcGDLhzAoCzd 1h6HwpAVhMXgX2ZACzBhX0DZmCdh/pplO4aphy0o5E9zGfyFPlsvmzhZXa9eMOaFjdGh RUtQ== MIME-Version: 1.0 Received: by 10.60.26.232 with SMTP id o8mr14895636oeg.7.1351113605109; Wed, 24 Oct 2012 14:20:05 -0700 (PDT) Received: by 10.60.134.47 with HTTP; Wed, 24 Oct 2012 14:20:05 -0700 (PDT) Date: Wed, 24 Oct 2012 14:20:05 -0700 X-Google-Sender-Auth: 10z7IURD3Mrsvh9WCWTtbOxQxXo Message-ID: Subject: dired-do-shell-command should allow . and .. From: Hemal Pandya To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=UTF-8 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 24 Oct 2012 17:26:11 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) In dired buffer, hitting `!' on current directory (`.') or parent directory (`..') results in the error dired-get-filename: Cannot operate on `.' or `..' There is no reason this should not be allowed. Please allow running commands on these two. This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. Please check that the From: line contains a valid email address. After a delay of up to one day, you should receive an acknowledgement at that address. Please write in English if possible, as the Emacs maintainers usually do not have translators for other languages. Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file /usr/share/emacs/24.2/etc/DEBUG. In GNU Emacs 24.2.1 (i686-pc-cygwin, GTK+ Version 2.24.11) of 2012-08-27 on fiona Windowing system distributor `The Cygwin/X Project', version 11.0.11204000 Configured using: `configure '--srcdir=/home/kbrown/src/cygemacs/emacs-24.2-1/src/emacs-24.2' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--libexecdir=/usr/lib' '--datadir=/usr/share' '--localstatedir=/var' '--sysconfdir=/etc' '--datarootdir=/usr/share' '--docdir=/usr/share/doc/emacs' '-C' '--without-gsettings' '--without-gconf' 'CC=gcc' 'CFLAGS=-ggdb -O2 -pipe -fdebug-prefix-map=/home/kbrown/src/cygemacs/emacs-24.2-1/build=/usr/src/debug/emacs-24.2-1 -fdebug-prefix-map=/home/kbrown/src/cygemacs/emacs-24.2-1/src/emacs-24.2=/usr/src/debug/emacs-24.2-1' 'LDFLAGS=-L/usr/lib/ncursesw' 'LIBS=' 'CPPFLAGS=-I/usr/include/ncursesw'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Dired by name Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-x d ! M-x r e p o r t - e m Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. dired-get-filename: Cannot operate on `.' or `..' Making completion list... Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils help-mode easymenu view dired-aux dired regexp-opt time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 25 09:04:29 2012 Received: (at 12725-done) by debbugs.gnu.org; 25 Oct 2012 13:04:29 +0000 Received: from localhost ([127.0.0.1]:60903 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TRN6q-0003kU-M2 for submit@debbugs.gnu.org; Thu, 25 Oct 2012 09:04:29 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:50538) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TRN6n-0003kE-Il for 12725-done@debbugs.gnu.org; Thu, 25 Oct 2012 09:04:26 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai0FAG6Zu0/O+LFW/2dsb2JhbABEsEiDSYEIghUBAQQBViMFCws0EhQYDSSIHAW6CZBEA6MzgViDBQ X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="202821346" Received: from 206-248-177-86.dsl.teksavvy.com (HELO pastel.home) ([206.248.177.86]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 25 Oct 2012 09:02:16 -0400 Received: by pastel.home (Postfix, from userid 20848) id A342859401; Thu, 25 Oct 2012 09:02:15 -0400 (EDT) From: Stefan Monnier To: Hemal Pandya Subject: Re: bug#12725: dired-do-shell-command should allow . and .. Message-ID: References: Date: Thu, 25 Oct 2012 09:02:15 -0400 In-Reply-To: (Hemal Pandya's message of "Wed, 24 Oct 2012 14:20:05 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: 12725-done Cc: 12725-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.8 (/) > In dired buffer, hitting `!' on current directory (`.') or parent > directory (`..') results in the error > dired-get-filename: Cannot operate on `.' or `..' > There is no reason this should not be allowed. Please allow running > commands on these two. I've installed the patch below which seems to fix your problem, thank you for bringing it up here, Stefan === modified file 'lisp/dired.el' --- lisp/dired.el 2012-10-24 14:38:49 +0000 +++ lisp/dired.el 2012-10-25 12:59:39 +0000 @@ -620,7 +620,7 @@ (let* ((all-of-them (save-excursion (dired-map-over-marks - (dired-get-filename localp) + (dired-get-filename localp 'no-error-if-not-filep) arg nil distinguish-one-marked))) result) (if (not filter) From unknown Thu Jun 19 14:18:42 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 23 Nov 2012 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator