From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 77649 invoked by alias); 10 Oct 2015 13:17:36 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 77634 invoked by uid 89); 10 Oct 2015 13:17:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.6 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: mtaout20.012.net.il Received: from mtaout20.012.net.il (HELO mtaout20.012.net.il) (80.179.55.166) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 10 Oct 2015 13:17:34 +0000 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NW000F00A7NEV00@a-mtaout20.012.net.il> for gdb@sourceware.org; Sat, 10 Oct 2015 16:17:31 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NW000FRMA96CK10@a-mtaout20.012.net.il>; Sat, 10 Oct 2015 16:17:31 +0300 (IDT) Date: Sat, 10 Oct 2015 13:17:00 -0000 From: Eli Zaretskii Subject: Re: Auto-load safe-path and auto-load scripts-directory on Windows In-reply-to: <5619119D.7070807@gmail.com> To: asmwarrior Cc: jan.kratochvil@redhat.com, gdb@sourceware.org Reply-to: Eli Zaretskii Message-id: <83egh2sw0e.fsf@gnu.org> References: <83io7y3249.fsf@gnu.org> <83h9ni2zij.fsf@gnu.org> <20150829112713.GB3298@host1.jankratochvil.net> <83egim2uqz.fsf@gnu.org> <20150829114356.GA3766@host1.jankratochvil.net> <83a8ta2qsq.fsf@gnu.org> <56186C66.1090907@gmail.com> <83egh3tc84.fsf@gnu.org> <5619119D.7070807@gmail.com> X-IsSubscribed: yes X-SW-Source: 2015-10/txt/msg00046.txt.bz2 > Date: Sat, 10 Oct 2015 21:24:45 +0800 > From: asmwarrior > CC: jan.kratochvil@redhat.com, gdb@sourceware.org > > The result is: $debugdir:$datadir/auto-load > This is the default value, and I have > > /* Directories from which to load auto-loaded scripts. */ > #define AUTO_LOAD_DIR "$debugdir:$datadir/auto-load" > > in config.h > > But if I change the line to: (note I use the semicolon) > with_auto_load_dir='$debugdir;$datadir/auto-load' > > Then, I get an error: > $ ./mytest.sh > $debugdir;$datadir/auto-load > ./mytest.sh: line 7: /auto-load: No such file or directory > > So, it looks like an issue in the eval command? The semi-colon is a special character, you need to quote or escape it.