BSD Ports

shells/modernish 0.16.5 MidnightBSD

POSIX shell feature detection and language extension library

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
Port added
Last update
Commit
1a6eaf1e88
License
iscl
Categories
shells

Description

The programming/scripting language that incorporates the most frustrating combination of deficiencies and awesome power is probably the POSIX shell with accompanying utilities, which all exist in several variant implementations. Due to said power, the shell refuses to die as a scripting language. But when scripters are bitten by arcane grammar pitfalls, defective tutorials on the web, or shell functionality deficits, then 'use a real programming language instead' is generally the mantra.

Enter modernish, a new vision on shell scripting. Modernish aims to provide a standard library that allows for writing robust, portable, readable, and powerful programs for POSIX-based shells and utilities. It can solve the shell language problems mentioned above, and many more. With modernish, you'd almost think the shell has become a modern programming language!

The library builds on the POSIX 2018 Edition standard, so it should run on any sufficiently POSIX-compliant shell and operating system. But it also takes advantage of certain shell-specific enhancements if it detects them.

In the other systems

The newest version among them is 0.16.5, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
MidnightBSDshells/modernish0.16.5 newestno data-[email protected]2026-11-12
FreeBSDshells/modernish0.16.5 newestnone known-[email protected]-
HardenedBSDshells/modernish0.16.5 newestno data-[email protected]-
GhostBSDshells/modernish0.16.5 newestno data-[email protected]-

Version history 2

  1. 0.16.5 235dc2bfd7
  2. 0.16.5 1ed0f9823e

Upstream's version as each commit to the port's Makefile set it, or as this site first saw it in the system's packages; the tree's own revisions are not versions here.

Install

Binary package:

mport install modernish

From mports:

cd /usr/mports/shells/modernish && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	modernish>0:shells/modernish

Dependencies

No port depends on this one.

Configuration

Options name: shells_modernish

OptionDefaultDescription
DOCSoff
EXAMPLESoff
Service scripts
none

Files

pkg-plist 271
  • bin/modernish
  • lib/modernish/aux/cap/BUG_LNNONEG.sh
  • lib/modernish/aux/cap/BUG_LOOPRET3.sh
  • lib/modernish/aux/cap/BUG_TRAPFNEXI.sh
  • lib/modernish/aux/cap/DOTARG.sh
  • lib/modernish/aux/ematch.awk
  • lib/modernish/aux/fatal.sh
  • lib/modernish/aux/id.sh
  • lib/modernish/aux/std.sh
  • lib/modernish/aux/sys/base/tac.awk
  • lib/modernish/aux/sys/cmd/mapr.awk
  • lib/modernish/aux/var/loop/find-ok.sh
  • lib/modernish/aux/var/loop/find-path.sh
  • lib/modernish/aux/var/loop/find.awk
  • lib/modernish/aux/var/loop/find.sh
  • lib/modernish/cap/ADDASSIGN.t
  • lib/modernish/cap/ANONFUNC.t
  • lib/modernish/cap/ARITHCMD.t
  • lib/modernish/cap/ARITHFOR.t
  • lib/modernish/cap/ARITHPP.t
  • lib/modernish/cap/BUG_ALIASCSHD.t
  • lib/modernish/cap/BUG_ALIASCSUB.t
  • lib/modernish/cap/BUG_ALIASPOSX.t
  • lib/modernish/cap/BUG_APPENDC.t
  • lib/modernish/cap/BUG_ARITHINIT.t
  • lib/modernish/cap/BUG_ARITHLNNO.t
  • lib/modernish/cap/BUG_ARITHSPLT.t
  • lib/modernish/cap/BUG_ARITHTYPE.t
  • lib/modernish/cap/BUG_ASGNCC01.t
  • lib/modernish/cap/BUG_ASGNLOCAL.t
  • lib/modernish/cap/BUG_BRACQUOT.t
  • lib/modernish/cap/BUG_CASELIT.t
  • lib/modernish/cap/BUG_CASEPAREN.t
  • lib/modernish/cap/BUG_CASESTAT.t
  • lib/modernish/cap/BUG_CDPCANON.t
  • lib/modernish/cap/BUG_CMDEXEC.t
  • lib/modernish/cap/BUG_CMDEXPAN.t
  • lib/modernish/cap/BUG_CMDOPTEXP.t
  • lib/modernish/cap/BUG_CMDPV.t
  • lib/modernish/cap/BUG_CMDSETPP.t
  • lib/modernish/cap/BUG_CMDSPASGN.t
  • lib/modernish/cap/BUG_CMDSPEXIT.t
  • lib/modernish/cap/BUG_CMDVRESV.t
  • lib/modernish/cap/BUG_CSNHDBKSL.t
  • lib/modernish/cap/BUG_CSUBRMLF.t
  • lib/modernish/cap/BUG_CSUBSTDO.t
  • lib/modernish/cap/BUG_DEVTTY.t
  • lib/modernish/cap/BUG_DOLRCSUB.t
  • lib/modernish/cap/BUG_DQGLOB.t
  • lib/modernish/cap/BUG_EVALCOBR.t
  • lib/modernish/cap/BUG_EXPORTUNS.t
  • lib/modernish/cap/BUG_FNSUBSH.t
  • lib/modernish/cap/BUG_FORLOCAL.t
  • lib/modernish/cap/BUG_GETOPTSMA.t
  • lib/modernish/cap/BUG_HDOCBKSL.t
  • lib/modernish/cap/BUG_HDOCMASK.t
  • lib/modernish/cap/BUG_IFSCC01PP.t
  • lib/modernish/cap/BUG_IFSGLOBC.t
  • lib/modernish/cap/BUG_IFSGLOBP.t
  • lib/modernish/cap/BUG_IFSGLOBS.t
  • lib/modernish/cap/BUG_IFSISSET.t
  • lib/modernish/cap/BUG_ISSETLOOP.t
  • lib/modernish/cap/BUG_KUNSETIFS.t
  • lib/modernish/cap/BUG_LNNOALIAS.t
  • lib/modernish/cap/BUG_LNNOEVAL.t
  • lib/modernish/cap/BUG_LNNONEG.t
  • lib/modernish/cap/BUG_LOOPRET1.t
  • lib/modernish/cap/BUG_LOOPRET2.t
  • lib/modernish/cap/BUG_LOOPRET3.t
  • lib/modernish/cap/BUG_MULTIBIFS.t
  • lib/modernish/cap/BUG_NOCHCLASS.t
  • lib/modernish/cap/BUG_NOEXPRO.t
  • lib/modernish/cap/BUG_NOOCTAL.t
  • lib/modernish/cap/BUG_NOUNSETEX.t
  • lib/modernish/cap/BUG_OPTNOLOG.t
  • lib/modernish/cap/BUG_PFRPAD.t
  • lib/modernish/cap/BUG_PP_01.t
  • lib/modernish/cap/BUG_PP_02.t
  • lib/modernish/cap/BUG_PP_03.t
  • lib/modernish/cap/BUG_PP_03A.t
  • lib/modernish/cap/BUG_PP_03B.t
  • lib/modernish/cap/BUG_PP_03C.t
  • lib/modernish/cap/BUG_PP_04.t
  • lib/modernish/cap/BUG_PP_04A.t
  • lib/modernish/cap/BUG_PP_04D.t
  • lib/modernish/cap/BUG_PP_04E.t
  • lib/modernish/cap/BUG_PP_04_S.t
  • lib/modernish/cap/BUG_PP_05.t
  • lib/modernish/cap/BUG_PP_06.t
  • lib/modernish/cap/BUG_PP_06A.t
  • lib/modernish/cap/BUG_PP_07.t
  • lib/modernish/cap/BUG_PP_07A.t
  • lib/modernish/cap/BUG_PP_08.t
  • lib/modernish/cap/BUG_PP_08B.t
  • lib/modernish/cap/BUG_PP_09.t
  • lib/modernish/cap/BUG_PP_10.t
  • lib/modernish/cap/BUG_PP_10A.t
  • lib/modernish/cap/BUG_PP_1ARG.t
  • lib/modernish/cap/BUG_PP_MDIGIT.t
  • lib/modernish/cap/BUG_PSUBASNCC.t

The first 100 are listed.

distinfo 1
FileSizeSHA256
modernish-modernish-v0.16.5_GH0.tar.gz3424570964bbe0fe0b24eecf62dfbef089710358d468c1eb09e2d48008ca7753beb8e1

Commit history 4

DateCommitCreditsLog message
1a6eaf1e88 Lucas Holt shells/modernish: run install.sh under script(1)
install.sh's capability tests write to /dev/tty, which fails on builders with no controlling terminal (Magus run 652 port 2302101). Restore FreeBSD's 'script -q /dev/stdout' wrapper to provide a pty. AI-Assisted-by: Claude Opus 5.5 <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Lucas Holt <[email protected]>
235dc2bfd7 Lucas Holt Restore ports tree accidentally deleted by Rails PR #2213 (#2232)
Restore the 63,146 unrelated files accidentally deleted when malformed Rails PR #2213 was merged. Retain the intended databases/rubygem-activemodel81 update to 8.1.4.1. Verified the repaired tree has all 63,148 tracked files. Compared with master before #2213 (141a9523ba), only databases/rubygem-activemodel81/Makefile and distinfo differ. The update itself was already built, packaged and hash-verified. The cause was preparing sparse worktrees with an empty index. The remaining Rails branches are receiving corrective commits, with explicit final-tree and per-port diff validation before push. This recovery changes no port semantics beyond the intended ActiveModel update. Signed-off-by: Lucas Holt <[email protected]>
1123a1dfb9 Lucas Holt databases/rubygem-activemodel81: update to 8.1.4.1 for security fixes (#2213)
Update databases/rubygem-activemodel81 to 8.1.4.1. Part of the coordinated Rails security update addressing the 21 advisories published November 4, 2026. Preserve this port's existing Rails release series; update all version-linked component ports together. Validation on MidnightBSD 4.0.9 amd64, Ruby 3.3.11: official release SHA256 matches the supplied announcement; MIT license unchanged; makesum, patch, build, fake including gem dependency QA, and package passed. Portlint: zero fatal errors (existing advisories only). Runtime dependency gems were isolated under /tmp; NO_DEPENDS=yes prevented installing host packages, so mport dependency installation/closure itself was not tested. Targeted security validation for the Rails 8.1 release: twelve …
1ed0f9823e Lucas Holt shells: port 33 shells and utilities from FreeBSD (plus 7 prerequisites) (#2196)
## Summary Port 33 missing shells and shell utilities from FreeBSD ports into `shells/`, along with 7 prerequisite ports in `devel/`, `lang/`, and `textproc/`. ### Prerequisites Added (7) - `devel/p5-Data-Dump-Streamer` - `devel/p5-Term-Screen` - `devel/p5-Tree-Trie` - `devel/schilybase` - `devel/smake` - `lang/chez-scheme` - `textproc/p5-YAML-Syck` ### Shells & Utilities Added (33) - `shells/antibody` - `shells/bash-completion-zfs` - `shells/bicon` - `shells/bosh` - `shells/carapace` - `shells/git-prompt.zsh` - `shells/ion` - `shells/iris` - `shells/meka` - `shells/modernish` - `shells/murex` - `shells/nsh` - `shells/nu_plugin_formats` - `shells/nu_plugin_gstat` - `shells/nu_plugin_inc` - `shells/nu_plugin_polars` - `shells/nu_plugin_query` - `shells/ohmyzsh` …