From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20664 invoked by alias); 16 Nov 2007 08:03:53 -0000 Received: (qmail 20657 invoked by uid 22791); 16 Nov 2007 08:03:52 -0000 X-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DK_POLICY_SIGNSOME,FORGED_RCVD_HELO,SPF_HELO_PASS,SPF_PASS,TW_FH X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 16 Nov 2007 08:03:50 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.1) with ESMTP id lAG83nIK001540 for ; Fri, 16 Nov 2007 03:03:49 -0500 Received: from pobox-2.corp.redhat.com (pobox-2.corp.redhat.com [10.11.255.15]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id lAG83mNW000980 for ; Fri, 16 Nov 2007 03:03:48 -0500 Received: from localhost.localdomain (vpn-6-15.fab.redhat.com [10.33.6.15]) by pobox-2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id lAG83lW4006005 for ; Fri, 16 Nov 2007 03:03:48 -0500 Message-ID: <473D4EE3.3060408@redhat.com> Date: Fri, 16 Nov 2007 08:03:00 -0000 From: Phil Muldoon User-Agent: Thunderbird 2.0.0.6 (X11/20070926) MIME-Version: 1.0 To: Frysk Hackers Subject: Command line expansions of ~ and other special characters Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact frysk-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-owner@sourceware.org X-SW-Source: 2007-q4/txt/msg00147.txt.bz2 Right now the fhpd command line understands the ~ character as /home/user, and will on tab navigate to the correct location. However passing ~/core.1234 to the CorefileCommand will fail as Java's File apparently does not. This would also be the case with load command. As there is a potential for many areas of duplicate code grappling over Linux special special character expansion, does it make sense to have these expanded before they reach the sub-commands? What about special cases like `pwd `/core.1234? If so, where does this extraction and expansion need to occur? Regards Phil