Very Basic question -- help -- at my wit's end!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zooter
    New Member
    • Jun 2007
    • 1

    Very Basic question -- help -- at my wit's end!

    set sys_date = "Hello Cruel World!"
    echo $sys_date

    outputs a blank line -- what's wrong? i'm unable to proceed with extracting the system date as you can guess from the variable name) etc and proceed with my script for taking over the world :(
  • Motoma
    Recognized Expert Specialist
    • Jan 2007
    • 3236

    #2
    Originally posted by zooter
    set sys_date = "Hello Cruel World!"
    echo $sys_date

    outputs a blank line -- what's wrong? i'm unable to proceed with extracting the system date as you can guess from the variable name) etc and proceed with my script for taking over the world :(
    Two things: The spaces around the = will error, and the tool you are likely looking for is export, not set.

    Code:
    $ export sys_hello="I am a pretty princess!"
    $ echo $sys_hello
    I am a pretty princess!
    
    $

    Comment

    Working...