🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #4577

Re: Bash var and file name completion

#4577
From: Icarus Sparry
Date: Mon, 08 Jul 1996 00:00
19 lines
1094 bytes
In article <31DD1175.AB5@cray-systems.lu>,
Marius Groenendijk  <marius@cray-systems.lu> wrote:
>Bash does file and variable name completion.
>
>Is it possible to combine both (and how)? That is, if a string
>contains a variable, file name completion should still work.

It does

>For ex. $HOME/.bash<TAB> should complete to $HOME/.bash_history and
>$HOME/.bashrc

Filename completion only completes to uniq names.

>Of course asking $HO/.bash to complete into $HOME/.... is asking for
>too much.

$HO<tab>/.bash<tab>
Technical Details
Message-ID: <Du83rB.ML5.B.stealth@bath.ac.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <31db86ad.198224@news.wave.co.nz> <31DD1175.AB5@cray-systems.lu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1012a6,c6013d02c7afe42c
X-Google-Attributes: gid1012a6,public
X-Google-Thread: 1025b4,5f187b6ee7b02a12
X-Google-Attributes: gid1025b4,public
From: ccsis@bath.ac.uk (Icarus Sparry)
Subject: Re: Bash var and file name completion
Date: 1996/07/08
Message-ID: <Du83rB.ML5.B.stealth@bath.ac.uk>
X-Deja-AN: 167176155
references: <31db86ad.198224@news.wave.co.nz> <31DD1175.AB5@cray-systems.lu>
organization: Bath University Computing Services, UK
newsgroups: comp.unix.shell,gnu.misc.discuss