[Coco] stupid question, but the manual doesn't say

Willard Goosey goosey at virgo.sdc.org
Fri Apr 18 22:21:06 EDT 2014


That is, unfortunately,  how it works. Shell scripts can't get command-line arguments.

Not directly anyway.  You can play some games with shell+'s internal vars. There are some shellsub modules that can assist but it's still not the real thing.

Willard
Sent from Samsung tablet

-------- Original message --------
From Wayne Campbell <asa.rand at gmail.com> 
Date: 04/18/2014  5:54 PM  (GMT-07:00) 
To CoCoList <coco at maltedmedia.com> 
Subject [Coco] stupid question, but the manual doesn't say 
 
I have a shell script that I want to pass a value to. If I type the
script-file name and press enter, then enter the value I want, everything
is good, but if I type the script-file name with the value as a parameter,
I get a bad pathname error (215). To recap:

OS9:script-file
value

works.

OS9:script-file value

bad pathname

What is the correct form? Below is my script-file.

var.1
del %1Raw.txt
del %1Lines.txt
del %1Vars.txt
del %1VDT.txt
del %1DSAT.txt
del %1.B09

Wayne

-- 
The Structure of I-Code
http://www.cocopedia.com/wiki/index.php/The_Structure_of_I-Code

decode
http://cococoding.com/wayne/

--
Coco mailing list
Coco at maltedmedia.com
http://five.pairlist.net/mailman/listinfo/coco


More information about the Coco mailing list