🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #886

Re: completion and C-o

#886
From: Chet Ramey
Date: Thu, 13 Aug 1992 05:45
41 lines
1888 bytes
> I am having some problems with line editing.  Here is the
> only line in my ~/.inputrc file:
> set horizontal-scroll-mode On
> 
> The C-O command does not work, although bind -v returns,
> among other things,
> 
> operate-and-get-next can be found on "\C-o".
> 
> When I say that it doesn't work, I mean that the previous
> line I'm viewing just stays there, and can still be used as
> input to the shell by pressing enter.

^O happens to be the tty driver's `flush output' character.  You
have to disable that with `stty flush u' before ^O works.

> Also, hostname completion is the only type of completion that
> doesn't work.  Here I suspect I didn't do something like
> inform the shell about a name server.

You need to provide the name of a file in /etc/hosts format for bash
to use as the value of the `hostname_completion_file' variable.  If
that variable doesn't exist, bash uses /etc/hosts.  Since you're on
a Sun, I suspect your /etc/hosts is quite small.  Try

	ypcat hosts > /tmp/hosts.$$
	hostname_completion_file=/tmp/hosts.$$

> I noticed that I can't get a list of files in this case:
> 
> bash$ more *.c

Bash completion does not do globbing.

Chet

--
``The use of history as therapy means the corruption of history as history.''
	-- Arthur Schlesinger

Chet Ramey, Case Western Reserve University	Internet: chet@po.CWRU.Edu
Technical Details
Message-ID: <9208131345.AA13211.SM@odin.INS.CWRU.Edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!odin.ins.cwru.edu!chet
References: chet@odin.ins.cwru.edu (Chet Ramey)

Show Full Headers
Complete Article Headers
Newsgroups: gnu.bash.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!odin.ins.cwru.edu!chet
From: chet@odin.ins.cwru.edu (Chet Ramey)
Subject: Re: completion and C-o
Message-ID: <9208131345.AA13211.SM@odin.INS.CWRU.Edu>
Sender: gnulists@ai.mit.edu
Reply-To: chet@po.cwru.edu
Organization: GNUs Not Usenet
References: chet@odin.ins.cwru.edu (Chet Ramey)
Distribution: gnu
Date: Thu, 13 Aug 1992 05:45:38 GMT
Approved: bug-bash@prep.ai.mit.edu
Lines: 42