From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2427 invoked by alias); 6 Mar 2013 15:52:43 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17668 Received: (qmail 22181 invoked from network); 6 Mar 2013 15:52:32 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <130306075216.ZM10086@torch.brasslantern.com> Date: Wed, 06 Mar 2013 07:52:16 -0800 In-reply-to: Comments: In reply to Ramkumar Ramachandra "Completion: smarter symlink completion" (Mar 6, 8:37pm) References: X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Ramkumar Ramachandra , zsh-users@zsh.org Subject: Re: Completion: smarter symlink completion MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Mar 6, 8:37pm, Ramkumar Ramachandra wrote: } } I noticed that symlinks are always completed with the trailing slash I presume you mean symlinks whose targets are directories? If symlinks whose targets are files are getting a trailing slash, that would clearly be strange. } like directories, and unlike normal files. This can be problematic if } the user runs `rm -r` on a symlink by mistake. Does autoremoveslash not take the slash away again before the command is executed? It certainly does for me. In any case I'd say running rm -r by mistake is a problem independent of how the file name was completed. If you have a rash of people running rm -r accidentally, why aren't you worried about real directories? } Is this really a bug, or am I misunderstanding something? The assumption is that when completing a directory (whether symlink or not), there's every likelyhood that the directory itself is not the end result, and you're going to continue completing other files down the tree. The slash is appended to (a) make that obvious and (b) not require that you switch back and forth between TAB and / keys in order to continue completing (unless the directory name itself was part of an ambiguous list).