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 11-28-2021, 06:17 PM   #1
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,181

Rep: Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763
Bug? ksh and xterm


Slackware 64 -current (2021-11-28)

Tab to complete a file name in xterm, using ksh, doesn't seem to work.

For example, I try to extract Rainlendar-Pro-2.17.1-amd64.tar.bz2 :

I type tar xjvf Rain and press Tab, but the cursor just seems to move 8 spaces in the terminal, without completing the name.

Is this a bug with ksh?

Last edited by Gerard Lally; 11-28-2021 at 06:19 PM.
 
Old 11-28-2021, 07:51 PM   #2
Mechanikx
Member
 
Registered: Jul 2018
Distribution: Slackware
Posts: 351

Rep: Reputation: 258Reputation: 258Reputation: 258
Try setting

Code:
set -o emacs
first and then see if you have completion. I'm not a ksh user but this worked for me.
 
Old 11-28-2021, 10:40 PM   #3
khronosschoty
Member
 
Registered: Jul 2008
Distribution: Slackware
Posts: 648
Blog Entries: 2

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
Quote:
Originally Posted by Gerard Lally View Post
Slackware 64 -current (2021-11-28)

Tab to complete a file name in xterm, using ksh, doesn't seem to work.

For example, I try to extract Rainlendar-Pro-2.17.1-amd64.tar.bz2 :

I type tar xjvf Rain and press Tab, but the cursor just seems to move 8 spaces in the terminal, without completing the name.

Is this a bug with ksh?
ksh doesn't provide tab completion like that, unless emacs mode is set. There is also a way to do name completion in vi mode (the standard) using escape.
 
Old 11-28-2021, 10:56 PM   #4
pghvlaans
Member
 
Registered: Jan 2021
Distribution: Slackware64 {15.0,-current}, FreeBSD, stuff on QEMU
Posts: 454

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
EDIT: It looks like either vi or emacs mode needs to be turned on for completions to work.

It seems to be working fine here. These are my options:

Code:
$ set -o
Current option settings
allexport                off
backslashctrl            on
bgnice                   on
braceexpand              on
clobber                  on
emacs                    off
errexit                  off
exec                     on
glob                     on
globcasedetect           off
globstar                 off
gmacs                    off
histexpand               on
ignoreeof                off
interactive              on
keyword                  off
letoctal                 off
log                      on
login_shell              off
markdirs                 off
monitor                  on
multiline                on
notify                   off
pipefail                 off
posix                    off
privileged               off
rc                       on
restricted               off
showme                   off
trackall                 off
unset                    on
verbose                  off
vi                       on
viraw                    on
xtrace                   off

Last edited by pghvlaans; 11-28-2021 at 11:03 PM. Reason: Better answer
 
Old 11-29-2021, 05:05 AM   #5
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,181

Original Poster
Rep: Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763
Well, that's embarrassing. It's been so long since I set up the Korn shell from scratch I completely overlooked kshrc.

Thanks everybody.
 
  


Reply



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
xterm - howto lauch an xterm into a specific directory jobano Linux - Software 11 01-30-2023 04:45 AM
[SOLVED] KSH script error -ksh: .: syntax error: `<<' unmatched Cheryl_A Linux - Server 2 01-24-2018 10:27 AM
ksh typeset bug? vgoel Programming 2 12-19-2010 06:16 PM
"xterm -e ls" and then I want that the xterm window wait cstrieder Linux - General 4 01-22-2010 02:39 PM
XTerm(241) support for truetype fonts and method of changing XTerm font. ajassat Linux - Software 2 08-19-2009 12:01 PM

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

All times are GMT -5. The time now is 02:24 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