1 Reply Latest reply on Jun 7, 2013 6:11 AM by Reto Streit

    NSH: Cant write command output into variable

    Patrick Mischler

      Hello

       

      I'have a problem in nsh:

       

      ss000459% echo $ENV_VAL

      C:\Program Files (x86)\BMC Software\

      ss000459% echo $ENV_VAL | sed 's/\\$//'

      C:\Program Files (x86)\BMC Software

      ss000459% var=`echo "$ENV_VAL" | sed 's/\\$//'`

      ss000459% echo $var

      C:\Program Files (x86)\BMC Software\

       

      The command "echo $ENV_VAL | sed 's\\$//'" works as expected. But when writting the output in the variable it doesen't work.