C Shell help

Discussion in 'Software' started by Computer Acolyte, Jun 19, 2008.

  1. Computer Acolyte

    Computer Acolyte Private First Class

    Can anoyne explain to me why the line
    Code:
    set line = ($<)
    in a C Shell script yields the following error:
    "set: Variable name must begin with a letter"?
    It does start with a letter, so what gives?
    The input it recieves from the standard input line does start with a number, but that should have nothing to do with it. Yet for some reason if I give it some other input (not from the standard input channel) it stops complaining.

    I've been trying to figure this out for about two hours straight, can anyone clue me in?
     
  2. PC-XT

    PC-XT Master Sergeant

    set a=($<)
    is an example from a C Shell book I found. I don't think the extra space would be causing the problem. Maybe "line" is already used somewhere else or something?

    I also found this on Wikipedia:
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds