I have years of experience on Slackware linux, and have never seen this problem there. Lately I have been administering Debian servers, and this has become an annoyance.
I frequently use "$_" in a bash command to repeat the final argument of the previously-typed command. Sometimes, I get the following behavior:
dschrag@mo:~/dev/dancer$ ls -l app/db/schema/ total 12 -rw-r--r-- 1 dschrag dschrag 268 May 19 10:51 gau_account.sql -rw-r--r-- 1 dschrag dschrag 558 May 19 13:02 gau_import.sql -rw-r--r-- 1 dschrag dschrag 270 May 19 13:09 gau_source.sql dschrag@mo:~/dev/dancer$ cd $_ -bash: cd: _filedir: No such file or directory dschrag@mo:~/dev/dancer$
I've looked around enough to see that
_filedir is used in many pre-defined (by default) shell functions defined in
I use file-completion without thinking, to the point it's hard for me to figure out the exact thing I am doing when this glitch occurs. Has anyone taken the trouble to dig deeper into this?