From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13843 invoked by alias); 16 Nov 2005 20:19:20 -0000 Received: (qmail 13826 invoked by uid 22791); 16 Nov 2005 20:19:18 -0000 Received: from romy.inter.net.il (HELO romy.inter.net.il) (192.114.186.66) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 16 Nov 2005 20:19:18 +0000 Received: from HOME-C4E4A596F7 (IGLD-80-230-33-244.inter.net.il [80.230.33.244]) by romy.inter.net.il (MOS 3.5.8-GR) with ESMTP id CZN12464 (AUTH halo1); Wed, 16 Nov 2005 22:19:13 +0200 (IST) Date: Thu, 17 Nov 2005 00:04:00 -0000 Message-Id: From: Eli Zaretskii To: Andrew STUBBS CC: gdb-patches@sources.redhat.com In-reply-to: <437B6718.7070300@st.com> (message from Andrew STUBBS on Wed, 16 Nov 2005 17:06:32 +0000) Subject: Re: [PATCH] Use search path for scripts Reply-to: Eli Zaretskii References: <437B6718.7070300@st.com> Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2005-11/txt/msg00253.txt.bz2 > Date: Wed, 16 Nov 2005 17:06:32 +0000 > From: Andrew STUBBS > > The search strategy employed is the one we have found most useful. If > the path contains '/' then search relative to current directory first, > otherwise search the path first. How about trying in the current directory if the file name does not have any slash characters? That sounds like the least surprising behavior, and also keeps backward compatibility. > doc/ > * gdb.texinfo (Choosing files): Mention that -directory is used > for script files. > (Specifying source directories): Likewise. > (Command files): Explain how script files are found. This part is approved (but if we decide to change the behavior, please post a modified patch).