This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC/TESTSUITE] completion.exp


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]