[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bash autocompletion



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, Apr 17, 2003 at 10:59:44AM +0200, Michael Naumann wrote:
> a) I start a commandline like
> scp gemini:/tm
> here I press tab (gemini is a valid hostname in my network).
> The line becomes:
> scp gemini:gemini\:/tmp
> and is thus pretty useless.
> What can I do to prevent this?

Don't hit tab.  What exactly were you expecting?  Bash autocompletion
only groks the filesystem it's running from.

> b) If a file does not have the proposed extension the completion
> will not work. Example:
> I have a file called "Song of joy.mp2"
> Now I start the commandline
> xmms Song
> Here I press tab, but due to the .mp2 (instead of .mp3) part
> of the filename nothing gets expanded.
> Can this clever autoindent feature be disabled temporarily?

That's not what's causing it.  Bash does not care what the extention
is, or even if it has one or twenty extentions.  My guess is you're
also getting a bell when you hit tab.  This is bash's way of telling
you to type a character or two and hit tab again to finish
autocompletion.

- -- 
 .''`.     Baloo Ursidae <baloo@ursine.dyndns.org>
: :'  :    proud Debian admin and user
`. `'`
  `-  Debian - when you have better things to do than fix a system
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+noHiJ5vLSqVpK2kRAmAnAJ4xkNeYqpuVVaH8uaQ3PcFheTCAbwCgwAq0
qRevyMBs7jl5lqTYhr9k/io=
=ausi
-----END PGP SIGNATURE-----



Reply to: