Page MenuHomeFreeBSD

New port: shells/modernish: POSIX shell feature detection and language extension library
ClosedPublic

Authored by 0mp on Feb 25 2019, 3:26 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 9 2024, 12:22 PM
Unknown Object (File)
Mar 6 2024, 2:56 AM
Unknown Object (File)
Mar 6 2024, 2:56 AM
Unknown Object (File)
Mar 6 2024, 2:56 AM
Unknown Object (File)
Mar 5 2024, 4:40 AM
Unknown Object (File)
Feb 1 2024, 8:52 PM
Unknown Object (File)
Jan 3 2024, 2:18 AM
Unknown Object (File)
Dec 24 2023, 9:03 AM
Subscribers
None

Details

Summary
shells/modernish: POSIX shell feature detection and language extension library

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.

WWW: https://github.com/modernish/modernish
Test Plan
  • portlint
  • make test
  • poudriere test 11.2 (amd64), 12.0 (i386), 13.0-CURRENT (amd64)

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

shells/modernish/Makefile
27 ↗(On Diff #54360)

This is never used.

35 ↗(On Diff #54360)

Why not remove the whole directory with a rm -r like the examples?

41 ↗(On Diff #54360)

Why not move the whole directory instead of moving each files individually? Same for examples.

This revision was not accepted when it landed; it landed in state Needs Review.Mar 6 2021, 7:46 PM
Closed by commit rP567514: Add shells/modernish (authored by 0mp). · Explain Why
This revision was automatically updated to reflect the committed changes.