]
Alexey Loubyansky commented on WFCORE-877:
------------------------------------------
This has never been supported. We've supported the redirection of output (>) to
this day.
Redirection (<, <<) do not work in CLI
--------------------------------------
Key: WFCORE-877
URL:
https://issues.jboss.org/browse/WFCORE-877
Project: WildFly Core
Issue Type: Enhancement
Components: CLI
Reporter: Marek Kopecký
Assignee: Alexey Loubyansky
Priority: Blocker
*Description of problem:*
Redirection (<, <<) do not work in CLI
*How reproducible:*
Always
*Steps to Reproduce:*
# echo ":shutdown" > c
# ./jboss-cli.sh -c < c
*Actual results:*
You are disconnected at the moment. Type 'connect' to connect to the server or
'help' for the list of supported commands.
*Expected results:*
":shutdown" command will be executed
*Another steps to reproduce:*
# cd bin
# ./standalone.sh &
# ./jboss-cli.sh -c
command=/core-service=management/security-realm=ApplicationRealm/authentication=local:remove
# ./jboss-cli.sh -c
command=/core-service=management/security-realm=ManagementRealm/authentication=local:remove
# ./jboss-cli.sh -c command=:shutdown
# cd ..
# echo "bob=81ce18184f7b1095a367d5fae624ac15" >>
standalone/configuration/mgmt-users.properties
# ./bin/standalone.sh &
# {noformat}./bin/jboss-cli.sh -c <<EOF
bob
admin123$
batch
:shutdown
run-batch
EOF{noformat}
*Actual results:*
Unexpected command 'bob'. Type 'help --commands' for the list of
supported commands.
*Expected results:*
":shutdown" command will be executed
*Additional info:*
Regression against 6.4.0
Regression against 7.0.0.DR7
Bugzilla from 6x
*
https://bugzilla.redhat.com/show_bug.cgi?id=961425
Customer cases (EAP 6x):
*
https://access.redhat.com/support/cases/#/case/00904577
*
https://access.redhat.com/support/cases/#/case/00889193
*
https://access.redhat.com/support/cases/#/case/00910827
*
https://access.redhat.com/support/cases/#/case/00910848