feat: Add lexical basename and dirname #18

Manually merged
erikinkinen merged 7 commits from feature/lexical-path-commands into feature/native-working-directory 2026-11-15 01:39:28 +01:00
Owner

Add borrowed byte-level basename and dirname commands. Both preserve raw operands, use the shared parser in buffered and native execution, and request no filesystem, working-directory or clock authority.

Depends on #17. See the pathname contract.

  • Cover slash-only paths, empty operands, literal suffixes, --, raw bytes and long borrowed operands.
  • Bind distinct command entries with empty authority ceilings and no optional routes.
  • Preserve output failures and reject invalid arguments before normal output.
  • Exercise buffered/native adapters and compile both native executable profiles.
Add borrowed byte-level basename and dirname commands. Both preserve raw operands, use the shared parser in buffered and native execution, and request no filesystem, working-directory or clock authority. Depends on #17. See [the pathname contract](https://git.erikinkinen.fi/erix/coreutils/src/branch/feature/lexical-path-commands/PATHNAME-UTILITIES.md). - [x] Cover slash-only paths, empty operands, literal suffixes, `--`, raw bytes and long borrowed operands. - [x] Bind distinct command entries with empty authority ceilings and no optional routes. - [x] Preserve output failures and reject invalid arguments before normal output. - [x] Exercise buffered/native adapters and compile both native executable profiles.
erikinkinen added this to the Alpha 1 milestone 2026-10-30 12:04:50 +01:00
feat: Add lexical basename and dirname
Some checks failed
CI / rust (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Failing after 4s
CI / rust (push) Failing after 53s
16fe9c5cb5
Split the supplied pathname bytes without filesystem lookup or capability acquisition. Share the parser between buffered and native execution.
docs: Repair Markdown paragraph wrapping
Some checks failed
CI / rust (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 6s
CI / rust (push) Failing after 1m13s
e78f1981c2
Keep the original feature prose and all source inputs while correcting
Markdown spacing and line wrapping.
ci: Use shared development dependency profiles
Some checks failed
CI / rust (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 12s
CI / rust (push) Failing after 47s
c940d3a3cd
Keep authored manifests on main and select coordinated providers through Integration. Resolve branches once per run, retain the frozen snapshot and helper identity as artifacts, and use shared source checks instead of copied tests and guides.
ci: Declare policy helper and output boundaries
Some checks failed
CI / rust (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 8s
CI / rust (push) Failing after 1m43s
30bcf46012
Select a disjoint operation parent for policy evidence and explicitly identify the helper checkout excluded from original component input. Keep the complete dependency policy and existing acceptance commands.
ci: Select the counted directory protocol provider
All checks were successful
CI / rust (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 2s
CI / rust (push) Successful in 1m18s
fd454e1768
The directory and raw path consumer requires the V2 IPC contracts. Select their public provider branch explicitly while preserving the original remaining providers and frozen source checks.
docs: Refresh counted directory consumer status
Some checks failed
CI / rust (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Failing after 2s
CI / rust (push) Successful in 1m25s
ae86f111c6
Replace deferred component checks with the completed consumer qualification while retaining provider and release-image acceptance as open work. Link the owning protocol branches and remove obsolete dependency-pin checkpoints.
docs: Wrap counted filesystem contract paragraphs
All checks were successful
CI / rust (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 3s
CI / rust (push) Successful in 1m20s
4968fdf45d
Keep the refreshed consumer status within the shared documentation line width.
erikinkinen changed title from WIP: Add lexical basename and dirname to feat: Add lexical basename and dirname 2026-11-13 02:58:54 +01:00
Author
Owner

The lexical commands are ready for review. All 169 unit tests and the original native build gates pass at the current head. The runtime controls also verify that forged environment paths and denied object routes cannot affect these commands.

The lexical commands are ready for review. All 169 unit tests and the original native build gates pass at the current head. The runtime controls also verify that forged environment paths and denied object routes cannot affect these commands.
erikinkinen manually merged commit fa6fbc483e into feature/native-working-directory 2026-11-15 01:39:28 +01:00
Sign in to join this conversation.
No description provided.