forked from jnode/jnode
-
Notifications
You must be signed in to change notification settings - Fork 1
Shell echo command should support -n flag #660
Copy link
Copy link
Labels
agent/failedThe agent exhausted its retries without producing a result.The agent exhausted its retries without producing a result.area/shellshell/ — command framework, built-in commands, bjorne evaluator.shell/ — command framework, built-in commands, bjorne evaluator.kind/featureNew feature or enhancement request.New feature or enhancement request.
Description
Activity
Metadata
Metadata
Assignees
Labels
agent/failedThe agent exhausted its retries without producing a result.The agent exhausted its retries without producing a result.area/shellshell/ — command framework, built-in commands, bjorne evaluator.shell/ — command framework, built-in commands, bjorne evaluator.kind/featureNew feature or enhancement request.New feature or enhancement request.
Summary
Add a -n flag to the shell echo command to suppress the trailing newline, matching common shell behavior.
Problem
Scripts that build output incrementally (prompts, progress lines) cannot avoid the trailing newline today. Workarounds via printf do not exist in this shell.
Proposal / Spec
echo -n <args>prints args separated by spaces with no trailing newline.echo <args>behavior unchanged.Requirements
echo -nalone prints nothing and exits zero.Acceptance Criteria
echo -n hellooutputs hello with no newline.echo hellooutput byte-identical to before.How to Test
Alternatives Considered
❌ Ticket Runner Status
Triage Addendum (auto, 2026-09-20)
## Triagecomment below.