-
Senior Member
registered user
Re: Variable problem
--Just so you know, most ppl on this board are probably using bash. (Unforch I don't know the answer to your question - but it does work now, right?)
--I looked in the man page for csh, and the variable for arguments passed to the script is " $* ", same as bash. What is "$#" supposed to be? If you're looking for the number of words in a variable, it would be $#varhere.

Originally Posted by
cborrero2000
I did a script for Red Hat Linux 8 and it worked perfect then I restarted my computer with KNOPPIX and I tried to run the script and is giving me the following problems:
1) The script doesn't work if I dont add to the first line -xv or just -.
Like that #!/bin/csh doesn't work
Like that #!/bin/csh -vx works, and just with the dash (-) it works too. #!/bin/csh -
Why is happened that? What can i do?
2) When the program get to execute an intruction with the variable $#, it says that this variable doesn't exist.
Should i use another variable to know if there's a parameter passed with the command line?
Thank you for the answers :P
Similar Threads
-
By SunnyB in forum General Support
Replies: 0
Last Post: 10-19-2004, 09:58 PM
-
By activeco in forum General Support
Replies: 2
Last Post: 09-04-2004, 08:55 PM
-
By Lex in forum General Support
Replies: 0
Last Post: 11-23-2003, 03:57 AM
-
By Triple Six in forum Hardware & Booting
Replies: 2
Last Post: 04-15-2003, 04:23 AM
-
By Guest in forum Customising & Remastering
Replies: 1
Last Post: 12-22-2002, 04:49 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

S-100 Vector Graphic 12K PROM/RAM Board (Altair, IMSAI)
$99.95

S-100 Vector Graphic 64K Ram Board (Altair, IMSAI)
$99.95

640pg Best of BYTE Magazine 1984 Mac Steve Jobs Altair 8800 IBM 5100 Bob Moog
$85.00

Vintage Digital Research ZSID 1.4 8" Floppy Disk CP/M Z80 Software S-100 Altair
$69.99

S-100 Industrial Micro Systems 8K Static Ram (IMS, Altair, IMSAI)
$69.95

Altair MITS S100 Backplane 8080A S-100 Replica IMSAI CP/M (bare board)
$40.00

BYTE Magazine Cover Jan 1977 Canvas Print 8"x10" Retro Computer Altair 880
$7.00

TDL “the ZPU” rev 1 February 1977 s100 cpu board
$345.00

CP/M 86 1.1R 8086 Highmonitor 8 Inch Floppy Diskette 80s IMSAI Altair
$29.99

ALTAIR Bitcoin Mining Solutions PDU IEC SERIES 100-250V 30A/24A Power Distribute
$99.00