Bug 996164

Summary: Scripts without explicit 'exit' will hang
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Carlo de Wolf <cdewolf>
Component: CLIAssignee: Alexey Loubyansky <olubyans>
Status: CLOSED DUPLICATE QA Contact: Petr Kremensky <pkremens>
Severity: urgent Docs Contact: Russell Dickenson <rdickens>
Priority: high    
Version: 6.1.1CC: bbaranow, brian.stansberry, chaowan, istudens, spederse
Target Milestone: ER1   
Target Release: EAP 6.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-04 12:59:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1002997    

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 ***