Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 07-24-2005, 03:52 PM   #1
Registered: Feb 2004
Location: Athens, Greece
Distribution: Gentoo,FreeBSD, Debian
Posts: 705

Rep: Reputation: 30
csh: variable input of the form x.y.z not accepted

My script contains this:
echo "enter rsync hostname for fedora official (base/extras/updates):"
set rsynchost=$<
but when i enter "", i get "set: Syntax Error". However, when i enter a simple string without ".", everything works fine.

A solution i have is to use 3 (or 2, because "ftp" can be a constant) different string variables and connect them. Is there a better solution? Why do i get this problem at first place?
Old 07-24-2005, 04:39 PM   #2
Registered: May 2005
Posts: 378

Rep: Reputation: 33
Why do i get this problem at first place?
You get this problem because you're writing a csh script. Use a Bourne shell and save yourself a lot of hassle; csh is just about usable as an interactive shell (if you really must) but as a scripting language it sucks. Avoid using it if you can.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
strange value of variable after a php form jeanpba Linux - Software 0 11-15-2005 02:38 AM
javascript variable in a form rksprst Programming 3 01-05-2005 04:34 AM
how do you set an env variable from within a csh script? BrianK Linux - General 3 05-26-2004 02:16 PM
bash - how to take input as a variable? trees Linux - General 1 02-19-2004 04:09 PM
(PHP) Stopping Malicious Form Input Obi Perrin Programming 0 04-27-2003 07:43 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:25 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration