home.social

#kornshell — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #kornshell, aggregated by home.social.

  1. @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

  2. @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

  3. @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

  4. @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

  5. @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

  6. @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

  7. @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

  8. @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

  9. @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

  10. @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

  11. @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

  12. #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.

    code.illumos.org/plugins/gitil

    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

  13. #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.

    code.illumos.org/plugins/gitil

    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

  14. #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.

    code.illumos.org/plugins/gitil

    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

  15. #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.

    code.illumos.org/plugins/gitil

    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

  16. #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.

    code.illumos.org/plugins/gitil

    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

  17. 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

  18. 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.

    briancallahan.net/blog/2021101

    #Unix #Linux #FreeBSD #NetBSD #DragonFlyBSD #BSD #C #compile #compiler #compilers #shell #unixshell #kornshell #ksh

  19. Linux Fu: Alternative Shells - On Unix — the progenitor of Linux — there was /bin/sh. It was simple, by comparison to today’s shell... more: hackaday.com/2020/05/21/linux- #hackadaycolumns #thompsonshell #bourneshell #linuxhacks #kornshell #linux #shell #bash #dash #fish #unix #ash #ksh #zsh #sh

  20. Started writing PKCS#1 1.5 RSA padding function in #KornShell

    definitely time to sleep