[TriLUG] tab completion behavior changes with recent Ubuntu

Pete Soper via TriLUG trilug at trilug.org
Mon Sep 21 17:48:54 EDT 2020


No worries. You're absolutely right that ~ is a lot shorter than $HOME.

But $XYZ/(tab) does exactly the same thing, adding a '\' in front of the 
dollar sign. I'd like to put a silver bullet through that aspect of my 
Linux configuration, recompile the "improved" code after "unimproving 
it", or whatever is necessary to escape this because my fingers can't 
seem to avoid using the tab key and I use lots of other env vars for 
pathnames besides $HOME.

-Pete

On 9/21/20 11:27 AM, Brian Henning wrote:
> Addendum:
>
> Sorry for the thoughtless accusatory tone; it's Monday and my coffee is still sinking in...
>
> -B
>
> -----Original Message-----
> From: TriLUG <trilug-bounces+bhenning=pineresearch.com at trilug.org> On Behalf Of Brian Henning via TriLUG
> Sent: Monday, September 21, 2020 11:26 AM
> To: Pete Soper <pete at soper.us>; Triangle Linux Users Group General Discussion <trilug at trilug.org>
> Subject: Re: [TriLUG] tab completion behavior changes with recent Ubuntu
>
> Pete,
>
> Why are you using "$HOME" instead of the tilde character?  E.g.
>
> 	$ cp ~/Pictures/<tab><tab>
> For me yields
> 	[directory listing]
> 	$ cp ~/Pictures/
>
> I get the same behavior you describe below (the addition of the escape) if I type $HOME.  Tilde saves you four keystrokes and works in most[1] shells.
>
> Cheers,
> -Brian
>
> [1] - where "most" is "four": sh, ksh, csh, and bash
>
>
> -----Original Message-----
> From: TriLUG <trilug-bounces+bhenning=pineresearch.com at trilug.org> On Behalf Of Pete Soper via TriLUG
> Sent: Monday, September 21, 2020 10:49 AM
> To: Triangle Linux Users Group General Discussion <trilug at trilug.org>
> Subject: [TriLUG] tab completion behavior changes with recent Ubuntu
>
> Running Ubuntu 18.04.1 with recent updates.
>
> I type this:
>
> /cp $HOME/Pictures//
>
> Then I type "tab", expecting this, as I would see for the last decade or
> two:
>
> /cp $HOME/Pictures/20200921_STM32F031F6P6.jpg/
>
> But instead I see:
>
> /cp \$HOME/Pictures/20200921_STM32F031F6P6.jpg/
>
> So then if I've forgotten the freebee backslash, when I add a period to get the file into my current directory:
>
> /cp \$HOME/Pictures/20200921_STM32F031F6P6.jpg ./
>
> Instead the operation fails as HOME/Pictures isn't valid.
>
> What is causing this and how to I eliminate?
>
> And out of curiosity, how did I accidentally enable this free escape of '$'? Is it a feature somehow?
>
> Thanks,
> Pete
>
>
>
> --
> This message was sent to: Brian <bhenning at pineresearch.com> To unsubscribe, send a blank message to trilug-leave at trilug.org from that address.
> TriLUG mailing list : https://www.trilug.org/mailman/listinfo/trilug
> Unsubscribe or edit options on the web	: https://www.trilug.org/mailman/options/trilug/bhenning%40pineresearch.com
> Welcome to TriLUG: https://trilug.org/welcome
> --
> This message was sent to: Brian <bhenning at pineresearch.com> To unsubscribe, send a blank message to trilug-leave at trilug.org from that address.
> TriLUG mailing list : https://www.trilug.org/mailman/listinfo/trilug
> Unsubscribe or edit options on the web	: https://www.trilug.org/mailman/options/trilug/bhenning%40pineresearch.com
> Welcome to TriLUG: https://trilug.org/welcome


More information about the TriLUG mailing list