Project

General

Profile

Actions

Bug #5257

open

svccfg setenv: unable to have spaces in environment variable value

Added by Nathan Howard over 6 years ago. Updated over 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
smf
Start date:
2014-10-23
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

There appears to be no way to use the svccfg setenv command to add environment variables who's value contains a space.

Steps to reproduce:

  • Try to add environment variable which has a space in the value:
    # svccfg -s pkgsrc/tomcat setenv -s CATALINA_OPTS "-Xms512M -Xmx512M" 
    

Expected result:

Adds the CATALINA_OPTS environment variable with value "-Xms512M -Xms512MB"

Actual result:

# svccfg -s pkgsrc/tomcat setenv -s CATALINA_OPTS "-Xms512M -Xmx512M" 
svccfg: Syntax error.

Some people are saying that the correct incarnation of the command is

svccfg -s pkgsrc/tomcat setenv -s CATALINA_OPTS "-Xms512M -Xmx512M" 

However this ends up effectively setting the following:

CATALINA_OPTS="\\"-Xms512M -Xmx512M\\"" 

which is not what we want.

Actions

Also available in: Atom PDF