You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2018/01/18 22:21:00 UTC

[jira] [Comment Edited] (KARAF-5570) Prompt branding no longer works

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

Guillaume Nodet edited comment on KARAF-5570 at 1/18/18 10:20 PM:
------------------------------------------------------------------

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.
Removing this variable would work too.  This can be done by either removing the above line or adding a line 
{code}
\#prompt = 
{code}



was (Author: gnt):
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)