[jboss-jira] [JBoss JIRA] (WFCORE-427) CLI doesn't read alias from .jbossclirc

Ståle Pedersen (JIRA) issues at jboss.org
Wed Feb 3 08:36:01 EST 2016


    [ https://issues.jboss.org/browse/WFCORE-427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13158213#comment-13158213 ] 

Ståle Pedersen edited comment on WFCORE-427 at 2/3/16 8:35 AM:
---------------------------------------------------------------

Hi, so in Wildfly10 the cli uses a different file; ~/.aesh_aliases, it will be changed in a later version.
e: Well, aesh have different files for aliases and export so this is not direct backwards compatible.


was (Author: stalep):
Hi, so in Wildfly10 the cli uses a different file; ~/.aesh_aliases, it will be changed in a later version.

> CLI doesn't read alias from .jbossclirc
> ---------------------------------------
>
>                 Key: WFCORE-427
>                 URL: https://issues.jboss.org/browse/WFCORE-427
>             Project: WildFly Core
>          Issue Type: Feature Request
>          Components: CLI
>            Reporter: Osamu Nagano
>            Assignee: Alexey Loubyansky
>
> By WFLY-1063, a variable can be defined in .jbossclirc and preloaded by CLI.  But aliases are not able to define with {{org.jboss.as.cli.CliInitializationException}}.
> {code}
> $ cat .jbossclirc
> set prod_db=/subsystem=datasources/data-source=ExampleDS
> alias ll=ls -l
> $ $JBOSS_HOME/bin/jboss-cli.sh -c 
> Unexpected command 'alias ll=ls -l'. Type 'help --commands' for the list of supported commands.
> org.jboss.as.cli.CliInitializationException: Failed to process /home/onagano/cases/01180422/wf810/.jbossclirc
>         at org.jboss.as.cli.impl.CliLauncher.runcom(CliLauncher.java:352)
>         at org.jboss.as.cli.impl.CommandContextImpl.<init>(CommandContextImpl.java:305)
>         at org.jboss.as.cli.impl.CommandContextFactoryImpl.newCommandContext(CommandContextFactoryImpl.java:76)
>         at org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:273)
>         at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:253)
>         at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:34)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:606)
>         at org.jboss.modules.Module.run(Module.java:312)
>         at org.jboss.modules.Main.main(Main.java:460)
> {code}
> Enclosing by single quote or double quote won't help.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)



More information about the jboss-jira mailing list