#kornshell — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #kornshell, aggregated by home.social.
-
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'
-
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'
-
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'
-
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'
-
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'
-
@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.
-
@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.
-
@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.
-
@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.
-
@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.
-
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.
-
#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.
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.".
-
#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.
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.".
-
#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.
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.".
-
#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.
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.".
-
#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.
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.".
-
Just dropped oksh-7.7, get it from the usual place: https://github.com/ibara/oksh
#unix #linux #bsd #freebsd #openbsd #netbsd #shell #ksh #kornshell #opensource #freesoftware
-
@vantablack Reminded me of this picture #korn #kornshell #unix #shell
-
CW: Introduction and photo with eye contact
I am a #ComputerNerd and I specialize in #Storage #DataMigration services for a living. With this account, I post about #InformationTechnology, #Cloud services, #Security, #OperatingSystems, #Computers and follow accounts that discuss these topics. I work mostly with and/or prefer #PreSales, #ProfessionalServices, #macOS, #UNIX, #NetApp #ONTAP, #Dell #Isilon #PowerScale, #NAS, #SAN, #Perl, #KornShell, #Bash #Shell, #Awk, #AWS, #GCP, #Azure
#Introduction -
A wild #blog post appears!
I do some benchmarking of #oksh with nine C compilers on #OpenBSD. Nothing conclusive is discovered, but it is nonetheless a very fun journey.
https://briancallahan.net/blog/20211010.html
#Unix #Linux #FreeBSD #NetBSD #DragonFlyBSD #BSD #C #compile #compiler #compilers #shell #unixshell #kornshell #ksh
-
I've released oksh-7.0 for all your shell needs.
#OpenBSD #FreeBSD #oksh #NetBSD #DragonFlyBSD #Unix #Linux #shell #ksh #KornShell #UnixShell
-
Linux Fu: Alternative Shells - On Unix — the progenitor of Linux — there was /bin/sh. It was simple, by comparison to today’s shell... more: https://hackaday.com/2020/05/21/linux-fu-alternative-shells/ #hackadaycolumns #thompsonshell #bourneshell #linuxhacks #kornshell #linux #shell #bash #dash #fish #unix #ash #ksh #zsh #sh
-
Started writing PKCS#1 1.5 RSA padding function in #KornShell
definitely time to sleep