Is there any difference between using typeset in ksh to simply setting a variable?

Posted by ennuikiller on Stack Overflow See other posts from Stack Overflow or by ennuikiller
Published on 2009-06-22T15:33:09Z Indexed on 2010/04/25 6:13 UTC
Read the original article Hit count: 307

Filed under:
|
|

Are the following 2 lines completely equivalent? If not what's the difference? I've seen plently of shellscripts utilize number 1 and was just wondering what it gives you compared with number 2.

  1. typeset TARGET="${XMS_HOME}/common/jxb/config/${RUNGROUP}.${ENV}.properties"
  2. TARGET="${XMS_HOME}/common/jxb/config/${RUNGROUP}.${ENV}.properties"

© Stack Overflow or respective owner

Related posts about ksh

Related posts about shell