Bug 996164 - Scripts without explicit 'exit' will hang
Summary: Scripts without explicit 'exit' will hang
Keywords:
Status: CLOSED DUPLICATE of bug 990227
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: CLI
Version: 6.1.1
Hardware: Unspecified
OS: Unspecified
high
urgent
Target Milestone: ER1
: EAP 6.2.0
Assignee: Alexey Loubyansky
QA Contact: Petr Kremensky
Russell Dickenson
URL:
Whiteboard:
Depends On:
Blocks: 1002997
TreeView+ depends on / blocked
 
Reported: 2013-08-12 14:34 UTC by Carlo de Wolf
Modified: 2013-12-15 13:32 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-09-04 12:59:49 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 961425 0 unspecified CLOSED EAP 6.1 CLI script usage breaks on last new line 2021-02-22 00:41:40 UTC
Red Hat Issue Tracker WFLY-1865 0 Major Resolved NPE might occur when a null object is returned from the aesh Console 2015-10-06 14:56:44 UTC

Internal Links: 961425

Description Carlo de Wolf 2013-08-12 14:34:39 UTC
Description of problem:

If a script does not contain the 'exit' keyword it will hang when used as stdin.

Version-Release number of selected component (if applicable):

6.1.1 (ER5)

How reproducible:

Always.

Steps to Reproduce:
1. echo 'ls' >/tmp/commands
2. ./jboss-cli.sh -c </tmp/commands

Actual results:

Hang.

Expected results:

List of service and exit.

Additional info:

https://bugzilla.redhat.com/show_bug.cgi?id=961425

Comment 1 Ståle W. Pedersen 2013-08-12 14:45:01 UTC
as mentioned in 961425, this is fixed in aesh 0.33.8 and the patch needed for jboss-cli is attached to that issue as well.
need to be confirmed by alexey.

Comment 2 Ståle W. Pedersen 2013-08-13 20:02:35 UTC
this has been fixed in upstream wildfly8 under this issue: WFLY-1865

Comment 3 Chao Wang 2013-09-03 03:56:51 UTC
relevant EAP 6.x PR : https://github.com/jbossas/jboss-eap/pull/302

Comment 4 baranowb 2013-09-04 10:28:44 UTC
Set proper metadata.

Comment 5 baranowb 2013-09-04 12:59:49 UTC

*** This bug has been marked as a duplicate of bug 990227 ***


Note You need to log in before you can comment on or make changes to this bug.