From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9108 invoked by alias); 14 May 2007 12:40:56 -0000 Received: (qmail 9097 invoked by uid 22791); 14 May 2007 12:40:53 -0000 X-Spam-Check-By: sourceware.org Received: from dmz.mips-uk.com (HELO dmz.mips-uk.com) (194.74.144.194) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 14 May 2007 12:40:48 +0000 Received: from internal-mx1 ([192.168.192.240] helo=ukservices1.mips.com) by dmz.mips-uk.com with esmtp (Exim 3.35 #1 (Debian)) id 1HnZqv-0004Hc-00; Mon, 14 May 2007 13:40:37 +0100 Received: from perivale.mips.com ([192.168.192.200]) by ukservices1.mips.com with esmtp (Exim 3.36 #1 (Debian)) id 1HnZqr-0003TQ-00; Mon, 14 May 2007 13:40:33 +0100 Received: from macro (helo=localhost) by perivale.mips.com with local-esmtp (Exim 4.63) (envelope-from ) id 1HnZqr-0004d9-GL; Mon, 14 May 2007 13:40:33 +0100 Date: Mon, 14 May 2007 12:40:00 -0000 From: "Maciej W. Rozycki" To: Eli Zaretskii cc: gdb-patches@sourceware.org, chris@mips.com, macro@linux-mips.org Subject: Re: Remove a trailing space resulting from file name completion In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-MIPS-Technologies-UK-MailScanner: Found to be clean X-MIPS-Technologies-UK-MailScanner-From: macro@mips.com Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-05/txt/msg00231.txt.bz2 On Fri, 11 May 2007, Eli Zaretskii wrote: > This is okay, but suppose I _did_ want a file name with trailing > space: how would I go about that in this situation? Is there a way? > If there isn't, either we should introduce one, or else we should tell > in the command's doc string and in the manual that this is a > restriction. Well, my feeling is some form of escaping would be reasonable, e.g. using a backslash. Daniel says he has some Evil Plan in this area, which I look forward. ;-) > Shouldn't you again check whether anything was left after stripping > whitespace, and if not, output the same ``no filename to set it to" > error message? I am unable to trigger a case where the file name would be set to an empty string -- I get: "Argument required (filename to set it to.)." Maciej