From: Jim Blandy <jimb@zwingli.cygnus.com>
To: Daniel Jacobowitz <drow@mvista.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: RFA: cd before completing
Date: Tue, 04 Dec 2001 14:51:00 -0000 [thread overview]
Message-ID: <np8zci8uoa.fsf@zwingli.cygnus.com> (raw)
In-Reply-To: Daniel Jacobowitz's message of Tue, 4 Dec 2001 13:15:39 -0500
Daniel Jacobowitz <drow@mvista.com> writes:
> On Tue, Dec 04, 2001 at 12:15:57PM -0500, Jim Blandy wrote:
> > 2001-12-04 Jim Blandy <jimb@redhat.com>
> >
> > * gdb.base/completion.exp: Rather than completing very long
> > filenames, which can make the readline library produce output we
> > don't recognize, cd to the directory first, and then complete
> > using nice, short relative paths.
>
> What does it produce that we don't recognize - some kind of line
> wrapping?
>
> (Please include a comment to that effect when this is approved).
Is this better?
! # The following tests used to simply try to complete `${objdir}/Make',
! # and so on. The problem is that ${objdir} can be very long; the
! # completed filename may be more than eighty characters wide. When
! # this happens, readline tries to manage things, producing output that
! # may make sense on the screen, but is rather hard for our script to
! # recognize.
! #
! # In the case that motivated this change, the (gdb) prompt occupied
! # the leftmost six columns, and `${objdump}/' was seventy-four
! # characters long --- eighty in all. After printing the slash,
! # readline emitted a space, a carriage return, and then `Makefile'
! # (the tab character being received as input after `Make'.
! #
! # Basically, you have to let readline do whatever it's going to do to
! # make the screen look right. If it happens to use a different
! # strategy on Tuesdays to get the cursor in the right place, that's
! # not something the testsuite should care about.
! #
! # So, we avoid long lines. We `cd' to ${objdir} first, and then do
! # the completion relative to the current directory.
next prev parent reply other threads:[~2001-12-04 22:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-04 9:14 Jim Blandy
2001-12-04 10:15 ` Daniel Jacobowitz
2001-12-04 14:51 ` Jim Blandy [this message]
2001-12-04 14:57 ` Daniel Jacobowitz
2001-12-13 12:15 ` Kevin Buettner
2001-12-16 12:31 ` Jim Blandy
2001-12-17 15:00 ` Jim Blandy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=np8zci8uoa.fsf@zwingli.cygnus.com \
--to=jimb@zwingli.cygnus.com \
--cc=drow@mvista.com \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox