LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-26-2016, 05:28 PM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Rep: Reputation: 177Reputation: 177
Command completion annoyance


I recently did a `slackpkg upgrade` and now have an annoying new "feature" when I use the <TAB> key to complete command and pathnames:

1. when I do e.g. `rlog updMbrGen<TAB>` it transforms that to "rlog ./updMbrGeneral", putting the "./" in front. Not a big deal because it works.

2. Worst, when I do `ls $CATALINA_HOME/<TAB>` it transforms it to "ls \$CATALINA_HOME/". That doesn't work as now the '$' is escaped, so further <TAB> attempts, such as `\$CATALINA_HOME/weba<TAB>` do not find the 'webapps' directory.

This used to work correctly before this update. In fact, what it used to do was expand `ls $CATALINA_HOME/<TAB>` to "ls /srv/tomcat/", which is the correct behavior.

Does anyone know what config setting I can change to fix this?

Last edited by mfoley; 02-26-2016 at 05:29 PM.
 
Old 02-26-2016, 05:50 PM   #2
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
For 2, try "ls -N". There was a change in the default behavior for ls in the recent coreutils update.
 
Old 02-26-2016, 06:08 PM   #3
Rinndalir
Member
 
Registered: Sep 2015
Posts: 733

Rep: Reputation: Disabled
Quote:
Originally Posted by orbea View Post
For 2, try "ls -N". There was a change in the default behavior for ls in the recent coreutils update.
This must be why files with spaces are now quoted. So far I haven't noticed any breakage due to this but it does look strange when you first see it.
 
Old 02-26-2016, 10:21 PM   #4
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by Rinndalir View Post
This must be why files with spaces are now quoted. So far I haven't noticed any breakage due to this but it does look strange when you first see it.
The devs said breakage shouldn't occur, because the quotes are only used when outputting to a terminal. When it is piped into another program, the quotes aren't there.

See this for more details.
 
Old 02-28-2016, 10:00 AM   #5
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
Quote:
Originally Posted by orbea View Post
For 2, try "ls -N". There was a change in the default behavior for ls in the recent coreutils update.
Tried it. Doesn't work. Still puts \$CATALINA_HOME/ when I type $CATALINA_HOME/<TAB>

P.I.A.!
 
Old 02-28-2016, 10:17 AM   #6
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
Well, I don't know what to say, it works here...

To be clear I alias ls to 'ls -N --color=auto'.

Edit: Nvm, I tested it better, it happens with variables you set yourself, how are you setting it? It doesn't happen if you just 'ls $HOME/'.

Edit2: If I export the variable manually 'export ORB_HOME=$HOME', it works as expected.
Code:
$ ls $ORB_HOME/music/
If I set it in ~/.bash_profile, it starts wanting to do this instead...
Code:
$ ls $ORB_HOME music/

Last edited by orbea; 02-28-2016 at 10:41 AM.
 
Old 04-01-2016, 11:05 AM   #7
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
I wiped the drive and did a clean install of Slackware64 14.1 and the problem is gone. Must have been some corruption in my installation.
 
  


Reply

Tags
auto-complete, command line



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Docker command completion on Centos 7? szboardstretcher Linux - Virtualization and Cloud 1 10-12-2014 01:51 AM
[SOLVED] No command completion for new users ananthkadalur Linux - Newbie 6 07-20-2011 09:00 AM
[SOLVED] Another Ksh Command completion query manyrootsofallevil Solaris / OpenSolaris 3 03-31-2011 03:26 AM
ksh command completion rwalders Linux - Newbie 4 11-01-2007 06:51 PM
enabling command option completion s_deepblue Debian 4 12-02-2005 05:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration