@rl_dane

The alternative is to make the shell handle the un-escaping:

echo hello,there |sed 's/,/'"\n"'/g'

It's undocumented in several ksh flavours, but nonetheless works. However, those flavours also (trying a quick few tests) support the better way, which is also undocumented though:

echo hello,there |sed $'s/,/\n/g'

#sed #UnixShells #KornShell #OpenBSD #ksh

@rqm

@rl_dane hit the nail on the head.

This isn't really specific to completion. It's just general overlong input line editing behaviour.

The PD #KornShell and its derivatives (e.g. the #MirBSD Korn Shell) only have line editing with a single line that sideways scrolls.

ksh93, however, has a
set -o multiline
option for switching to a multiple-line line editing mode. (The Z and Bourne Again shells have similar.)

You might like the Watanabe shell. It's in ports.

@magicant
#UnixShells

@rl_dane

I was curious as to what this meant, so I fired up PD ksh and tried what I thought long command-prompt entries meant.

The PD #KornShell uses a column width greater than the terminal width (which I set to 50 columns here, just to make things easier) because it SPC-pads everything to the length of the longest string; and ends up double-spacing most rows in the table as a consequence.

I couldn't figure out how to get it to specifically clip rows, though.

@rqm
#UnixShells

#Illumos has another #wordexp implementation (originating with Mortice-Kern, no less!) that expects a Korn (93) shell and uses its printf (and set -o), which might be tweakable to function with #OpenBSD's PD Korn shell; but like the GNU C library licence the Sun CDDL would likely be a problem.

https://code.illumos.org/plugins/gitiles/illumos-gate/+/refs/heads/master/usr/src/lib/libc/port/regex/wordexp.c

So if one is looking for "easily", where one just imports a compatibly-licenced and #KornShell-compatible existing implementation, the answer seems to be "No.".

#pdksh

usr/src/lib/libc/port/regex/wordexp.c - illumos-gate - Gitiles

Calling all oldheads who worked with UUCP. I was flipping through an old O'Reilly book of mine and found this. Being younger, I never used UUCP, so forgive me if I understand poorly, but basically UUNET, as an ISP, had publicly accessible UUCP servers that they treated like FTP, correct?

That's cool and all, but what I wanna know is if there's any more such services available these days. I'm fascinated by UUCP and need an excuse to try it.

#UUCP #UUNET #OReillyMedia #KornShell #Unix #FOSS

Who knew ? I'm actually managing surprisingly well using vi mode in my Korn shell and it's starting to stick in the old grey cells too. I am quite impressed with myself. ๐Ÿ˜„
Only one issue and that's to stay away from the arrow keys. Hmmm what are they for now. ๐Ÿคฃ
#FreeBSD #OKSH #KornShell
Well I'm still daily driving #KornShell aka oksh after getting 20 plus years used to bash and I'm really liking using it. I can honestly say it's a work in progress but I'm learning as I go along and loving it. This feels unixy to me. #RunBSD #FreeBSD
@vantablack Reminded me of this picture #korn #kornshell #unix #shell
Release oksh-7.5 ยท ibara/oksh

This is oksh-7.5 SHA256 (oksh-7.5.tar.gz) = QLiVw/jpMRv+KyMOmzeGcSVQ70iM7TO/180/ifzu7V0=

GitHub