From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 83691 invoked by alias); 10 Oct 2015 13:13:55 -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 82756 invoked by uid 89); 10 Oct 2015 13:13:55 -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_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,URIBL_BLACK autolearn=no version=3.3.2 X-HELO: mail-pa0-f44.google.com Received: from mail-pa0-f44.google.com (HELO mail-pa0-f44.google.com) (209.85.220.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Sat, 10 Oct 2015 13:13:53 +0000 Received: by pacex6 with SMTP id ex6so112395389pac.0 for ; Sat, 10 Oct 2015 06:13:51 -0700 (PDT) X-Received: by 10.68.238.69 with SMTP id vi5mr22374832pbc.29.1444482831673; Sat, 10 Oct 2015 06:13:51 -0700 (PDT) Received: from [0.0.0.0] ([107.191.52.102]) by smtp.googlemail.com with ESMTPSA id qd5sm8189598pbc.73.2015.10.10.06.13.48 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 10 Oct 2015 06:13:50 -0700 (PDT) Message-ID: <5619119D.7070807@gmail.com> Date: Sat, 10 Oct 2015 13:13:00 -0000 From: asmwarrior User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Eli Zaretskii CC: jan.kratochvil@redhat.com, gdb@sourceware.org Subject: Re: Auto-load safe-path and auto-load scripts-directory on Windows 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> In-Reply-To: <83egh3tc84.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2015-10/txt/msg00045.txt.bz2 I did some test under msys(MSYS-20111123.zip) Which comes from: http://sourceforge.net/projects/mingw-w64/files/External%20binary%20packages%20%28Win64%20hosted%29/MSYS%20%2832-bit%29/MSYS-20111123.zip The test code was just copied from "configure" and configure.ac" file: -------------------- #!/bin/bash with_auto_load_dir='$debugdir:$datadir/auto-load' escape_dir=`echo $with_auto_load_dir | sed 's/[[$]]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'` echo $escape_dir ac_define_dir=`eval echo $escape_dir` ac_define_dir=`eval echo $ac_define_dir` echo $ac_defefine_dir -------------------- 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?