You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2026/10/16 01:57:00 UTC
[jira] [Resolved] (CAMEL-25396) camel-jbang - Commands must not hang without a TTY
[ https://issues.apache.org/jira/browse/CAMEL-25396?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-25396.
---------------------------------
Resolution: Fixed
Merged in https://github.com/apache/camel/pull/27928 (commit ae2e38efecfa) for 4.24.0: without an interactive terminal no command waits for Enter (--watch once unless --duration, follow only with --follow or --duration), and the commands that need a terminal exit 2.
_Claude Code on behalf of davsclaus_
> camel-jbang - Commands must not hang without a TTY
> --------------------------------------------------
>
> Key: CAMEL-25396
> URL: https://issues.apache.org/jira/browse/CAMEL-25396
> Project: Camel
> Issue Type: Sub-task
> Components: camel-jbang
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Major
> Fix For: 4.24.0
>
>
> * {{CommandHelper.ReadConsoleTask}} treats EOF as stop.
> * Shared {{--duration=<time>}} on watch/follow commands (exit 0 on expiry).
> * Without a TTY: {{--watch}} without {{--duration}} runs once with a stderr warning; {{log}}, {{cmd receive}}, {{trace --action=dump}} default to {{--follow=false}}; {{infra log}} gets {{--follow}}; {{hawtio}} defaults {{--open-url=false}}.
> * Interactive-only commands ({{debug}}, {{nano}}, {{shell}}, {{edit}}, {{tui}}, {{ask}} without a question, {{--prompt}}, {{get history --it}}) fail fast with exit 2 "requires an interactive terminal" (today {{debug}} busy-spins at 100% CPU).
> _Claude Code on behalf of davsclaus (Claus Ibsen)_
--
This message was sent by Atlassian Jira
(v8.20.10#820010)