[svlug] cshell question
hcmason at best.com
Tue Sep 8 14:27:33 PDT 1998
I hope this isn't too off topic.
I am studying for my first "real" nonmainframe job, using cshells
scripts to launch control-m scheduler stuff. (control-m is like
cron with steroids).
I'm using an old book called the c-shell field guide. It uses
a command script of the following:
echo -n "Input your terminal type: "
setenv TERM `gets`
Well, gets isn't found, so I used
setenv TERM `$<` and entered
ibm3270, but it said ibm3270: command not found.
I guess at the time the book was written, the ` symbols
would capture the results of one command into the word list
for another command. Is this a typo? Did it ever work?
And yet set d = `date` works fine. Why is ibm3270 or for that
matter in other thing interpreted as a command instead of as
a word list in setenv TERM `$<` ?
I wonder if it is a deprecated form, like iefbr14...
echo "unsubscribe svlug" | mail majordomo at svlug.org
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ to unsubscribe
More information about the svlug