Re: [PATCH] bash_completion: improvement, fixes and tests [was: Re: subversion and programmable completion]
From: Philip Martin <philip_at_codematters.co.uk>
Date: 2003-07-24 07:46:28 CEST
Julian Foad <julianfoad@btopenworld.com> writes:
> But just to > check, try
$ echo 's/[(,]/\n/g' | hexdump -C
> Work-arounds: these all work for me; I'd be interested to know which
Results below are for sed and tr from the stable Debian distribution.
> 1. Use "tr" instead of "sed"; unlike sed, its escape sequences are
$ echo 'x(y' | tr '(,' '\n'
> 2. insert a literal newline character after the backslash, instead
$ echo 'x(y' | sed 's/[(,]/\
> 3. Use numeric escape sequences; these are not mentioned in the
$ echo 'x(y' | sed 's/[(,]/\o012/g'
> ~> echo 'x(y' | sed 's/[(,]/\d010/g'
$ echo 'x(y' | sed 's/[(,]/\d010/g'
> ~> echo 'x(y' | sed 's/[(,]/\x0A/g'
$ echo 'x(y' | sed 's/[(,]/\x0A/g'
> Attached is a version of bash_completion_test using "tr", which I
Thanks! I checked in a slightly modified version in r6557.
-- Philip Martin --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org For additional commands, e-mail: dev-help@subversion.tigris.orgReceived on Thu Jul 24 07:47:31 2003 |
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.