This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Auto-load safe-path and auto-load scripts-directory on Windows
- From: asmwarrior <asmwarrior at gmail dot com>
- To: Eli Zaretskii <eliz at gnu dot org>
- Cc: jan dot kratochvil at redhat dot com, gdb at sourceware dot org
- Date: Sat, 10 Oct 2015 21:40:47 +0800
- Subject: Re: Auto-load safe-path and auto-load scripts-directory on Windows
- Authentication-results: sourceware.org; auth=none
- References: <83io7y3249 dot fsf at gnu dot org> <83h9ni2zij dot fsf at gnu dot org> <20150829112713 dot GB3298 at host1 dot jankratochvil dot net> <83egim2uqz dot fsf at gnu dot org> <20150829114356 dot GA3766 at host1 dot jankratochvil dot net> <83a8ta2qsq dot fsf at gnu dot org> <56186C66 dot 1090907 at gmail dot com> <83egh3tc84 dot fsf at gnu dot org> <5619119D dot 7070807 at gmail dot com> <83egh2sw0e dot fsf at gnu dot org>
On 2015-10-10 21:17, Eli Zaretskii wrote:
>> Date: Sat, 10 Oct 2015 21:24:45 +0800
>> From: asmwarrior <asmwarrior@gmail.com>
>> 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.
>
Yes, I see, thanks.
I'm not quite good at Bash programming(I'm a beginner), simple add a "\" before ";" doesn't solve the issue.
I don't have a way to solve this issue.