From unknown Tue Jun 17 01:43:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26984: Add loksh (ported OpenBSD pdksh) Resent-From: ng0 Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 18 May 2017 18:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 26984 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 26984@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.149513166930507 (code B ref -1); Thu, 18 May 2017 18:22:02 +0000 Received: (at submit) by debbugs.gnu.org; 18 May 2017 18:21:09 +0000 Received: from localhost ([127.0.0.1]:53763 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dBQ2v-0007vz-Dt for submit@debbugs.gnu.org; Thu, 18 May 2017 14:21:09 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51587) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dBQ2t-0007va-NG for submit@debbugs.gnu.org; Thu, 18 May 2017 14:21:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dBQ2n-0008HI-2l for submit@debbugs.gnu.org; Thu, 18 May 2017 14:21:02 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:54373) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dBQ2m-0008HD-VQ for submit@debbugs.gnu.org; Thu, 18 May 2017 14:21:00 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42540) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dBQ2l-0006Ng-Dk for guix-patches@gnu.org; Thu, 18 May 2017 14:21:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dBQ2g-0008F4-S0 for guix-patches@gnu.org; Thu, 18 May 2017 14:20:59 -0400 Received: from 93-95-228-241.1984.is ([93.95.228.241]:48822 helo=sharknado9001.pragmatique.xyz) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dBQ2g-0008Dk-Bu for guix-patches@gnu.org; Thu, 18 May 2017 14:20:54 -0400 Received: by sharknado9001.pragmatique.xyz (OpenSMTPD) with ESMTPSA id 4f1bd7d9 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Thu, 18 May 2017 18:20:39 +0000 (UTC) Date: Thu, 18 May 2017 18:20:47 +0000 From: ng0 Message-ID: <20170518182047.qxwdpsy2edqltyg4@abyayala> Mail-Followup-To: guix-patches@gnu.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="sk2zbm2red5kdhie" Content-Disposition: inline X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) --sk2zbm2red5kdhie Content-Type: text/plain; charset=utf-8 Content-Disposition: inline The first patch adds loksh, a port of OpenBSD pdksh to Linux userland. Intended for musl build, but we don't have that now. It seems to work, I use it. -- https://pragmatique.xyz PGP: https://people.pragmatique.xyz/ng0/ --sk2zbm2red5kdhie Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0001-gnu-Add-loksh.patch" Content-Transfer-Encoding: quoted-printable =46rom b72f88bfa8c3f26fcac4a0c0e9ef07a76e727fcf Mon Sep 17 00:00:00 2001 =46rom: ng0 Date: Thu, 18 May 2017 16:55:12 +0000 Subject: [PATCH] gnu: Add loksh. * gnu/packages/shells.scm (loksh): New variable. --- gnu/packages/shells.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/shells.scm b/gnu/packages/shells.scm index 4e684e8c8..5035c935a 100644 --- a/gnu/packages/shells.scm +++ b/gnu/packages/shells.scm @@ -32,6 +32,7 @@ #:use-module (gnu packages bison) #:use-module (gnu packages documentation) #:use-module (gnu packages groff) + #:use-module (gnu packages libbsd) #:use-module (gnu packages libedit) #:use-module (gnu packages ncurses) #:use-module (gnu packages pcre) @@ -457,3 +458,39 @@ components: a process notation for running programs an= d setting up pipelines and redirections, and a complete syscall library for low-level access to t= he operating system.") (license bsd-3)))) + +(define-public loksh + (package + (name "loksh") + (version "6.1") + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/dimkr/loksh/archive/" + version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1wg7ds56yr8fgg1m149bi53bvrwccwiashmwknggza1sqgj9m2lq")))) + (build-system gnu-build-system) + (inputs + `(("libbsd" ,libbsd))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (arguments + `(#:tests? #f ;No tests included + #:make-flags (list "CC=3Dgcc" "HAVE_LIBBSD=3D1" + (string-append "DESTDIR=3D" + (assoc-ref %outputs "out")) + "PREFIX=3D") + #:phases + (modify-phases %standard-phases + (delete 'configure)))) ;No configure script + (home-page "https://github.com/dimkr/loksh") + (synopsis "Port of OpenBSD pdksh to Linux") + (description + "loksh is a Linux port of OpenBSD's ksh (pdksh). +It is a small, interactive shell targeted at resource-constrained systems.= ") + ;; The file 'LEGAL' says it is the public domain, and the 2 + ;; exceptions which are listed are not included in this port. + (license public-domain))) --=20 2.13.0 --sk2zbm2red5kdhie-- From unknown Tue Jun 17 01:43:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26984: Add loksh (ported OpenBSD pdksh) Resent-From: ng0 Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 18 May 2017 20:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26984 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 26984@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.149513894522912 (code B ref -1); Thu, 18 May 2017 20:23:01 +0000 Received: (at submit) by debbugs.gnu.org; 18 May 2017 20:22:25 +0000 Received: from localhost ([127.0.0.1]:53879 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dBRwG-0005xT-Kc for submit@debbugs.gnu.org; Thu, 18 May 2017 16:22:24 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49619) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dBRwE-0005xG-7y for submit@debbugs.gnu.org; Thu, 18 May 2017 16:22:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dBRw7-0000SV-Jo for submit@debbugs.gnu.org; Thu, 18 May 2017 16:22:16 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:38750) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dBRw7-0000SQ-Gq for submit@debbugs.gnu.org; Thu, 18 May 2017 16:22:15 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40581) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dBRw6-000550-4R for guix-patches@gnu.org; Thu, 18 May 2017 16:22:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dBRw2-0000R2-VC for guix-patches@gnu.org; Thu, 18 May 2017 16:22:14 -0400 Received: from 93-95-228-241.1984.is ([93.95.228.241]:48828 helo=sharknado9001.pragmatique.xyz) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dBRw2-0000QM-Ha for guix-patches@gnu.org; Thu, 18 May 2017 16:22:10 -0400 Received: by sharknado9001.pragmatique.xyz (OpenSMTPD) with ESMTPSA id 4330c1d0 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Thu, 18 May 2017 20:21:57 +0000 (UTC) Date: Thu, 18 May 2017 20:22:02 +0000 From: ng0 Message-ID: <20170518202202.l5yqcijtn6c65mu7@abyayala> Mail-Followup-To: guix-patches@gnu.org References: <20170518182047.qxwdpsy2edqltyg4@abyayala> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20170518182047.qxwdpsy2edqltyg4@abyayala> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) ng0 transcribed 2.8K bytes: > The first patch adds loksh, a port of OpenBSD pdksh to Linux userland. > Intended for musl build, but we don't have that now. > It seems to work, I use it. By the way, this can not be used for the test suite in graphviz. There are many ksh implementations, and this is not the one the tests accept. Or at least its ksh93 checks fail ;) > -- > https://pragmatique.xyz > PGP: https://people.pragmatique.xyz/ng0/ > From b72f88bfa8c3f26fcac4a0c0e9ef07a76e727fcf Mon Sep 17 00:00:00 2001 > From: ng0 > Date: Thu, 18 May 2017 16:55:12 +0000 > Subject: [PATCH] gnu: Add loksh. > > * gnu/packages/shells.scm (loksh): New variable. > --- > gnu/packages/shells.scm | 37 +++++++++++++++++++++++++++++++++++++ > 1 file changed, 37 insertions(+) > > diff --git a/gnu/packages/shells.scm b/gnu/packages/shells.scm > index 4e684e8c8..5035c935a 100644 > --- a/gnu/packages/shells.scm > +++ b/gnu/packages/shells.scm > @@ -32,6 +32,7 @@ > #:use-module (gnu packages bison) > #:use-module (gnu packages documentation) > #:use-module (gnu packages groff) > + #:use-module (gnu packages libbsd) > #:use-module (gnu packages libedit) > #:use-module (gnu packages ncurses) > #:use-module (gnu packages pcre) > @@ -457,3 +458,39 @@ components: a process notation for running programs and setting up pipelines > and redirections, and a complete syscall library for low-level access to the > operating system.") > (license bsd-3)))) > + > +(define-public loksh > + (package > + (name "loksh") > + (version "6.1") > + (source > + (origin > + (method url-fetch) > + (uri (string-append "https://github.com/dimkr/loksh/archive/" > + version ".tar.gz")) > + (file-name (string-append name "-" version ".tar.gz")) > + (sha256 > + (base32 > + "1wg7ds56yr8fgg1m149bi53bvrwccwiashmwknggza1sqgj9m2lq")))) > + (build-system gnu-build-system) > + (inputs > + `(("libbsd" ,libbsd))) > + (native-inputs > + `(("pkg-config" ,pkg-config))) > + (arguments > + `(#:tests? #f ;No tests included > + #:make-flags (list "CC=gcc" "HAVE_LIBBSD=1" > + (string-append "DESTDIR=" > + (assoc-ref %outputs "out")) > + "PREFIX=") > + #:phases > + (modify-phases %standard-phases > + (delete 'configure)))) ;No configure script > + (home-page "https://github.com/dimkr/loksh") > + (synopsis "Port of OpenBSD pdksh to Linux") > + (description > + "loksh is a Linux port of OpenBSD's ksh (pdksh). > +It is a small, interactive shell targeted at resource-constrained systems.") > + ;; The file 'LEGAL' says it is the public domain, and the 2 > + ;; exceptions which are listed are not included in this port. > + (license public-domain))) > -- > 2.13.0 > -- https://pragmatique.xyz PGP: https://people.pragmatique.xyz/ng0/ From unknown Tue Jun 17 01:43:24 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: ng0 Subject: bug#26984: closed (Re: bug#26984: Add loksh (ported OpenBSD pdksh)) Message-ID: References: <87efvk9x4m.fsf@fastmail.com> <20170518182047.qxwdpsy2edqltyg4@abyayala> X-Gnu-PR-Message: they-closed 26984 X-Gnu-PR-Package: guix-patches Reply-To: 26984@debbugs.gnu.org Date: Sat, 20 May 2017 00:43:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1495240982-22796-1" This is a multi-part message in MIME format... ------------=_1495240982-22796-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #26984: Add loksh (ported OpenBSD pdksh) which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 26984@debbugs.gnu.org. --=20 26984: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D26984 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1495240982-22796-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 26984-done) by debbugs.gnu.org; 20 May 2017 00:42:54 +0000 Received: from localhost ([127.0.0.1]:55795 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dBsTt-0005vN-TD for submit@debbugs.gnu.org; Fri, 19 May 2017 20:42:54 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:42127) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dBsTs-0005vE-9e for 26984-done@debbugs.gnu.org; Fri, 19 May 2017 20:42:52 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id B5163206D5; Fri, 19 May 2017 20:42:51 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Fri, 19 May 2017 20:42:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc :x-sasl-enc; s=fm1; bh=61NfQhNh0JJG//IDnNhcmLzDBPH7L07jd9pgAqNVj OE=; b=aj4CSey+cZ8+NqtQ1s/u6f50b5zQTwtvyfipxDYc6t85tMTX5IQ9HEX2W +BQJqfAbHTdb9pRU6FoQy/0usm3QMD9uWOLHjPtKpb+MEB+LuivoiXpEjj1I8Bz2 INERYgtkfERtVZTkHElL8x7Ed6IMruy0bLRYffTkieFnsH2D6Hs8i4aTRXIMxmBe q70k9jCwz1njtUTT5fV67Z2phigwwgOgPOKJLQx4gebvtKzVPL3Bej115R8aDnOD efW2kQ9MZRLGx/E/gUtBpWYCvobWfDKHjyGOlgsNx7z3JsG1+2psguGefU1nQ/6G A4TIh/z5XZMn0mBqDWpcDM7P3P3zw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=61NfQhNh0JJG//IDnN hcmLzDBPH7L07jd9pgAqNVjOE=; b=QmkHEbri2UPkEpk8PNcpCYFFm1vbwj+g+K 4Qh0gD3W5UV74cAns19xNVAgc496vW9awjRbtWFZkLKlQKLbV0MNoiDqkCCvbX3X Q2A5pCevJL1miVHmooS5iiJxVZglcKiHOxv75fWMpxys3AmN9JRacBG58aEpeNW+ 8L9Sl3d1a10n/GcxL50TOAed1MJS/I+eijJth/yi7wKSVAyrqVdR0rfSY2m8eqpv c04z0tE60vG8I+bqistTxjOqnkvHSTTa1nO0mgO59HLPJjRmwLqrCvVUd+Saov5w VqcSVDXKN4MmBpqPkRwctyCmtYfJ66agu7UcpzI09HTNFaeHb2uA== X-ME-Sender: X-Sasl-enc: koneH5oO/qaoiUgGhg9iPlKNVqD9DOBgWnD1hCL5Q5+O 1495240971 Received: from localhost (unknown [188.113.81.93]) by mail.messagingengine.com (Postfix) with ESMTPA id 4E35C7E78C; Fri, 19 May 2017 20:42:51 -0400 (EDT) From: Marius Bakke To: ng0 , 26984-done@debbugs.gnu.org Subject: Re: bug#26984: Add loksh (ported OpenBSD pdksh) In-Reply-To: <20170518202202.l5yqcijtn6c65mu7@abyayala> References: <20170518182047.qxwdpsy2edqltyg4@abyayala> <20170518202202.l5yqcijtn6c65mu7@abyayala> User-Agent: Notmuch/0.24.1 (https://notmuchmail.org) Emacs/25.2.1 (x86_64-unknown-linux-gnu) Date: Sat, 20 May 2017 02:42:49 +0200 Message-ID: <87efvk9x4m.fsf@fastmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 26984-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --=-=-= Content-Type: text/plain ng0 writes: > Subject: [PATCH] gnu: Add loksh. > > * gnu/packages/shells.scm (loksh): New variable. Thanks for this patch! I've used this shell a lot on OpenBSD. One thing it does better than bash is that ^W stops at "/" and other boundaries, not just spaces! I've applied it with a slight adjustment to description: diff --git a/gnu/packages/shells.scm b/gnu/packages/shells.scm index 5035c935a..47d3a4614 100644 --- a/gnu/packages/shells.scm +++ b/gnu/packages/shells.scm @@ -487,10 +487,10 @@ operating system.") (modify-phases %standard-phases (delete 'configure)))) ;No configure script (home-page "https://github.com/dimkr/loksh") - (synopsis "Port of OpenBSD pdksh to Linux") + (synopsis "Korn Shell from OpenBSD") (description - "loksh is a Linux port of OpenBSD's ksh (pdksh). -It is a small, interactive shell targeted at resource-constrained systems.") + "loksh is a Linux port of OpenBSD's @command{ksh}. It is a small, +interactive POSIX shell targeted at resource-constrained systems.") ;; The file 'LEGAL' says it is the public domain, and the 2 ;; exceptions which are listed are not included in this port. (license public-domain))) > By the way, this can not be used for the test suite in graphviz. > There are many ksh implementations, and this is not the one > the tests accept. Or at least its ksh93 checks fail ;) Maybe they need "mksh"? Another popular Korn Shell :) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlkfkQkACgkQoqBt8qM6 VPpk8ggAhULomOnM54jLFzTgyZFdwVCx7mKmefqRD5wDGakcwke/m0BBC4Uq9ABz BTCQ6PQFN5Bi4tsoQXCZPH816uRfPa/RcQTlTPBdGrzVWMNPVndOv4Yufps2+bFQ GOdDwQe4elQSuqedj97bFX9YfzWJGGSgZ1GpETNN/QXYb7+1YW1wprdP221lgITG 0bMmrc9ma2qAYoHM2oSkg0JhJmiPDjzDyPTrqIeTibCXlu1PS0tS98I6yV1w3cNP pJXb2a0AEfg6i93JKakCJLKaoXRqFjNosE8fFAQwpGPtHVmGw2nr6kf13QgsvRy3 M5tdxdxTvqKn5Yt5rRyenMu47adEMg== =Bhy4 -----END PGP SIGNATURE----- --=-=-=-- ------------=_1495240982-22796-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 18 May 2017 18:21:09 +0000 Received: from localhost ([127.0.0.1]:53763 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dBQ2v-0007vz-Dt for submit@debbugs.gnu.org; Thu, 18 May 2017 14:21:09 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51587) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dBQ2t-0007va-NG for submit@debbugs.gnu.org; Thu, 18 May 2017 14:21:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dBQ2n-0008HI-2l for submit@debbugs.gnu.org; Thu, 18 May 2017 14:21:02 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:54373) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dBQ2m-0008HD-VQ for submit@debbugs.gnu.org; Thu, 18 May 2017 14:21:00 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42540) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dBQ2l-0006Ng-Dk for guix-patches@gnu.org; Thu, 18 May 2017 14:21:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dBQ2g-0008F4-S0 for guix-patches@gnu.org; Thu, 18 May 2017 14:20:59 -0400 Received: from 93-95-228-241.1984.is ([93.95.228.241]:48822 helo=sharknado9001.pragmatique.xyz) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dBQ2g-0008Dk-Bu for guix-patches@gnu.org; Thu, 18 May 2017 14:20:54 -0400 Received: by sharknado9001.pragmatique.xyz (OpenSMTPD) with ESMTPSA id 4f1bd7d9 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Thu, 18 May 2017 18:20:39 +0000 (UTC) Date: Thu, 18 May 2017 18:20:47 +0000 From: ng0 To: guix-patches@gnu.org Subject: Add loksh (ported OpenBSD pdksh) Message-ID: <20170518182047.qxwdpsy2edqltyg4@abyayala> Mail-Followup-To: guix-patches@gnu.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="sk2zbm2red5kdhie" Content-Disposition: inline X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) --sk2zbm2red5kdhie Content-Type: text/plain; charset=utf-8 Content-Disposition: inline The first patch adds loksh, a port of OpenBSD pdksh to Linux userland. Intended for musl build, but we don't have that now. It seems to work, I use it. -- https://pragmatique.xyz PGP: https://people.pragmatique.xyz/ng0/ --sk2zbm2red5kdhie Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0001-gnu-Add-loksh.patch" Content-Transfer-Encoding: quoted-printable =46rom b72f88bfa8c3f26fcac4a0c0e9ef07a76e727fcf Mon Sep 17 00:00:00 2001 =46rom: ng0 Date: Thu, 18 May 2017 16:55:12 +0000 Subject: [PATCH] gnu: Add loksh. * gnu/packages/shells.scm (loksh): New variable. --- gnu/packages/shells.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/shells.scm b/gnu/packages/shells.scm index 4e684e8c8..5035c935a 100644 --- a/gnu/packages/shells.scm +++ b/gnu/packages/shells.scm @@ -32,6 +32,7 @@ #:use-module (gnu packages bison) #:use-module (gnu packages documentation) #:use-module (gnu packages groff) + #:use-module (gnu packages libbsd) #:use-module (gnu packages libedit) #:use-module (gnu packages ncurses) #:use-module (gnu packages pcre) @@ -457,3 +458,39 @@ components: a process notation for running programs an= d setting up pipelines and redirections, and a complete syscall library for low-level access to t= he operating system.") (license bsd-3)))) + +(define-public loksh + (package + (name "loksh") + (version "6.1") + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/dimkr/loksh/archive/" + version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1wg7ds56yr8fgg1m149bi53bvrwccwiashmwknggza1sqgj9m2lq")))) + (build-system gnu-build-system) + (inputs + `(("libbsd" ,libbsd))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (arguments + `(#:tests? #f ;No tests included + #:make-flags (list "CC=3Dgcc" "HAVE_LIBBSD=3D1" + (string-append "DESTDIR=3D" + (assoc-ref %outputs "out")) + "PREFIX=3D") + #:phases + (modify-phases %standard-phases + (delete 'configure)))) ;No configure script + (home-page "https://github.com/dimkr/loksh") + (synopsis "Port of OpenBSD pdksh to Linux") + (description + "loksh is a Linux port of OpenBSD's ksh (pdksh). +It is a small, interactive shell targeted at resource-constrained systems.= ") + ;; The file 'LEGAL' says it is the public domain, and the 2 + ;; exceptions which are listed are not included in this port. + (license public-domain))) --=20 2.13.0 --sk2zbm2red5kdhie-- ------------=_1495240982-22796-1-- From unknown Tue Jun 17 01:43:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26984: closed (Re: bug#26984: Add loksh (ported OpenBSD pdksh)) Resent-From: user@abyayala.i-did-not-set--mail-host-address--so-tickle-me Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 20 May 2017 16:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26984 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: mbakke@fastmail.com Cc: 26984@debbugs.gnu.org, ng0 Received: via spool by 26984-submit@debbugs.gnu.org id=B26984.149529930124819 (code B ref 26984); Sat, 20 May 2017 16:55:02 +0000 Received: (at 26984) by debbugs.gnu.org; 20 May 2017 16:55:01 +0000 Received: from localhost ([127.0.0.1]:57210 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dC7ee-0006SE-PU for submit@debbugs.gnu.org; Sat, 20 May 2017 12:55:01 -0400 Received: from aibo.runbox.com ([91.220.196.211]:47260) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dC0YL-0002Zp-Ct for 26984@debbugs.gnu.org; Sat, 20 May 2017 05:20:02 -0400 Received: from [10.9.9.211] (helo=mailfront11.runbox.com) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1dC0YI-0004zF-1w; Sat, 20 May 2017 11:19:58 +0200 Received: from x5d83f2e8.dyn.telefonica.de ([93.131.242.232] helo=localhost) by mailfront11.runbox.com with esmtpsa (uid:892961 ) (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1dC0Xt-0006QL-6J; Sat, 20 May 2017 11:19:33 +0200 From: user@abyayala.i-did-not-set--mail-host-address--so-tickle-me In-Reply-To: (GNU bug Tracking System's message of "Sat, 20 May 2017 00:43:02 +0000") References: <87efvk9x4m.fsf@fastmail.com> <20170518182047.qxwdpsy2edqltyg4@abyayala> Date: Sat, 20 May 2017 09:19:32 +0000 Message-ID: <87shjzc2cb.fsf@abyayala.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.3 (/) X-Mailman-Approved-At: Sat, 20 May 2017 12:54:59 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) help-debbugs@gnu.org (GNU bug Tracking System) writes: > ng0 writes: > >> Subject: [PATCH] gnu: Add loksh. >> >> * gnu/packages/shells.scm (loksh): New variable. > > Thanks for this patch! I've used this shell a lot on OpenBSD. One > thing it does better than bash is that ^W stops at "/" and other > boundaries, not just spaces! > > I've applied it with a slight adjustment to description: >> By the way, this can not be used for the test suite in graphviz. >> There are many ksh implementations, and this is not the one >> the tests accept. Or at least its ksh93 checks fail ;) > > Maybe they need "mksh"? Another popular Korn Shell :) Maybe. It must be a ksh93 implementation, most implementations are ksh88. I don't know enough about ksh to know if a shell is compatible. I executed ksh and ran the lines which test for ksh88 or ksh93. It failed.