bug-bash
[Top][All Lists]
Advanced

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

Re: What should be the expected behavior for $_ ?


From: Greg Wooledge
Subject: Re: What should be the expected behavior for $_ ?
Date: Tue, 3 Apr 2018 10:07:55 -0400
User-agent: NeoMutt/20170113 (1.7.2)

On Tue, Apr 03, 2018 at 10:03:30AM -0400, Siteshwar Vashisht wrote:
> $ mkdir testdir
> $ cp rpmall.txt rpmshort.txt $_ # Use tab completion to complete filenames
> cp: target '_filedir' is not a directory
> 
> Last command fails because tab completing 'cp' command modifies value of 
> '$_'. Shall value of '$_' be modified if a command gets executed in 
> background ?

Sounds like bash-completion (which is a totally separate project from
bash) strikes again.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]