From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9959 invoked by alias); 6 Apr 2010 23:17:41 -0000 Received: (qmail 9948 invoked by uid 22791); 6 Apr 2010 23:17:38 -0000 X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SARE_MSGID_LONG45,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (74.125.121.35) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 06 Apr 2010 23:17:32 +0000 Received: from kpbe18.cbf.corp.google.com (kpbe18.cbf.corp.google.com [172.25.105.82]) by smtp-out.google.com with ESMTP id o36NHTGB019365 for ; Wed, 7 Apr 2010 01:17:29 +0200 Received: from pzk13 (pzk13.prod.google.com [10.243.19.141]) by kpbe18.cbf.corp.google.com with ESMTP id o36NHRWm013363 for ; Tue, 6 Apr 2010 16:17:28 -0700 Received: by pzk13 with SMTP id 13so355676pzk.13 for ; Tue, 06 Apr 2010 16:17:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.141.124.12 with HTTP; Tue, 6 Apr 2010 16:17:27 -0700 (PDT) In-Reply-To: <20100406215751.7EC1784397@ruffy.mtv.corp.google.com> References: <20100406215751.7EC1784397@ruffy.mtv.corp.google.com> Date: Tue, 06 Apr 2010 23:17:00 -0000 Received: by 10.141.125.7 with SMTP id c7mr6317112rvn.228.1270595847730; Tue, 06 Apr 2010 16:17:27 -0700 (PDT) Message-ID: Subject: Re: [RFA] Add -s option to source command. From: Doug Evans To: gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-System-Of-Record: true X-IsSubscribed: yes 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: 2010-04/txt/msg00111.txt.bz2 On Tue, Apr 6, 2010 at 2:57 PM, Doug Evans wrote: > Hi. > > In a big source tree with multiple disparate components it's useful to be > able to load scripts without having to type full path names. > > This patch adds a -s option to the source command to make it search > for the script in the source search path even if the script name specifies > a directory. fyi, I figured it would be useful to test "source -s -v" and "source -v -s" so I added that to the patch. Then I noticed that "source -v" leaves -v stuck in the "on" position. I'll submit a separate patch to fix that, and then update my source -s patch.