This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFC/TESTSUITE] completion.exp
- From: David Carlton <carlton at math dot stanford dot edu>
- To: Elena Zannoni <ezannoni at redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: 09 Apr 2003 10:23:15 -0700
- Subject: Re: [RFC/TESTSUITE] completion.exp
- References: <16019.23357.144916.774165@localhost.redhat.com>
On Tue, 8 Apr 2003 19:29:01 -0400, Elena Zannoni <ezannoni at redhat dot com> said:
> +# If the directory name contains a '+' we must escape it, adding a backslash.
> +# If not, the test below will fail because it will interpret the '+' as a
> +# regext operator.
> +regsub -all \\+ ${fullsrcdir} \\\+ dirstring
Would it be better to use string_to_regexp instead of regsub? (But
leaving in the comment as an indication of why you're using it.)
David Carlton
carlton at math dot stanford dot edu