I do not recall when I discovered auto-complete in bash but it is now embedded in the muscle memory of my fingers
That said, I have recently come across a rather strange behavior. bash starts with /home/ken as the working directory. The contents of the directory are as follows
Code:
[ken@taylor12 ~]$ ll
-rw-rw-r--. 1 ken ken 2824 Mar 9 2014 David Ford re. Keith Branch
-rw-r-----. 1 ken ken 521208 Oct 26 09:21 Declaration Pages.pdf
drwxr-xr-x. 2 ken ken 20480 Nov 29 15:22 Desktop
drwxr-xr-x. 2 ken ken 4096 Nov 25 11:45 Documents
drwxr-xr-x. 2 ken ken 4096 Nov 27 18:47 Downloads
drwxr-xr-x. 2 ken ken 4096 Oct 15 06:23 dwhelper
drwxr-xr-x. 2 ken ken 4096 Jun 25 2010 Enigmail Keys
-rw-rw-r--. 1 ken ken 857 Jun 28 2012 FOXUSER.DBF
-rw-rw-r--. 1 ken ken 4608 Jun 28 2012 FOXUSER.FPT
drwxr-xr-x. 2 ken ken 4096 Jun 24 2012 icons
drwxr-xr-x. 2 ken ken 4096 Jun 21 2012 Music
-rw-rw-r--. 1 ken ken 105691 May 19 2015 NCPUC Complaint.pdf
drwxr-xr-x. 2 ken ken 4096 Nov 29 08:17 pdf
drwxrwxr-x. 3 ken ken 4096 Sep 22 09:02 Pictures
-rw-rw-r--. 1 ken ken 851 Aug 3 08:00 Pills
drwxr-xr-x. 2 ken ken 4096 Jun 21 2012 Public
drwxr-x---. 2 ken ken 4096 Nov 2 13:49 scan
-rw-rw-r--. 1 ken ken 56 Sep 29 09:42 Scholarship Recipients
If I enter De[tab] I would expect Desktop to be the only matching directory. However, I see
Code:
[ken@taylor12 ~]$ cd De
Declaration Pages.pdf Desktop/
[ken@taylor12 ~]$ cd De
Declaration Pages.pdf is NOT a directory and cd will of course not change into it. A little experimenting... cd Sc[tab] produced
Code:
[ken@taylor12 ~]$ cd Scholarship\ Recipients
bash: cd: Scholarship Recipients: Not a directory
[ken@taylor12 ~]$
In fact, any file name with an embedded space seems to be interpreted as a candidate for being a directory. Is this to me expected or have I uncovered a bug?
TIA,
Ken