LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

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

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


My script contains this:
Code:
echo "enter rsync hostname for fedora official (base/extras/updates):"
set rsynchost=$<
but when i enter "ftp.lala.com", 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?
Thanks
 
Old 07-24-2005, 04:39 PM   #2
eddiebaby1023
Member
 
Registered: May 2005
Posts: 378

Rep: Reputation: 33
Quote:
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.
 
  


Reply


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


All times are GMT -5. The time now is 08:43 AM.

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