karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Nodet (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-5570) Prompt branding no longer works
Date Thu, 18 Jan 2018 22:19:03 GMT

    [ https://issues.apache.org/jira/browse/KARAF-5570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16331337#comment-16331337
] 

Guillaume Nodet commented on KARAF-5570:
----------------------------------------

So in karaf 4.1.x and 4.2.x, the prompt from the branding properties is overriden by the shell
variable set by the {{etc/shell.init.script}} script file which is executed when the session
is created.

The script contains the following:
{code}
\#prompt = { "${USER}@${APPLICATION}(${SUBSHELL})> "?};
{code}

So the best option would be to somehow modify the value of the {{prompt}} or {{#prompt}} variable.

> Prompt branding no longer works
> -------------------------------
>
>                 Key: KARAF-5570
>                 URL: https://issues.apache.org/jira/browse/KARAF-5570
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 4.1.3, 4.1.4, 4.2.0.M2
>            Reporter: Michael Vorburger
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>
> as found in https://jira.opendaylight.org/browse/ODLPARENT-137 by OpenDaylight:
> That [prompt branding stuff|https://karaf.apache.org/manual/latest/#_branding] which
as still OK e.g. in 4.0.9 seems to have broken some time in 4.1.x ... here's how to reproduce:
> {noformat}$ nano etc/branding.properties
> welcome=Duh
> prompt=Dah{noformat}
> In all of apache-karaf-4.2.0.M2, apache-karaf-4.1.4 and apache-karaf-4.1.3 this leads
to:
> {noformat}Duh
> karaf@root()>{noformat}
> whereas in 4.0.9 it led to:
> {noformat}Duh
> Dah^C
> Dah^DDah{noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message