You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benoit Dunand-Laisin (JIRA)" <ji...@codehaus.org> on 2014/03/28 16:59:59 UTC

[jira] (DOXIA-516) [Daemon *nix template] Params of tr command must be quoted

Benoit Dunand-Laisin created DOXIA-516:
------------------------------------------

             Summary: [Daemon *nix template]  Params of tr command must be quoted
                 Key: DOXIA-516
                 URL: https://jira.codehaus.org/browse/DOXIA-516
             Project: Maven Doxia
          Issue Type: Bug
          Components: Maven plugin
    Affects Versions: 1.6
         Environment: Ubuntu 12.04 and other linux
            Reporter: Benoit Dunand-Laisin


I generate a daemon with appassembler-maven-plugin.
The contains of bin directory is moved to */usr/bin*
When I start the daemon, It failed because the script look for */usr/bin/wrapper-{color:red}w{color}inux-x86-64*

The problem is with the *tr* command used on DIST_OS and DIST_ARCH and happens only if the script is put in /usr/bin
{noformat}
tr [:upper:] [:lower:]
{noformat}
must be changed to
{noformat}
tr "[:upper:]" "[:lower:]"
{noformat}

Here is an example to show that funny thing:
{noformat}
>cd
>echo "Linux" | tr [:upper:] [:lower:]
linux

>cd /usr/bin
>echo "Linux" | tr \[:upper:\] \[:lower:\]
winux

>cd /usr/bin
>echo "Linux" | tr "[:upper:]" "[:lower:\]"
linux
{noformat}
It must be changed in sh.script.in 



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)