From 1874e34ef34de5c8472787bb37c1581366f30aa3 Mon Sep 17 00:00:00 2001 From: Peter Teuben Date: Thu, 27 Jul 2023 20:50:18 -0400 Subject: [PATCH] new style csh --- example2.csh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 example2.csh diff --git a/example2.csh b/example2.csh new file mode 100755 index 0000000..86e2efe --- /dev/null +++ b/example2.csh @@ -0,0 +1,26 @@ +#! /usr/bin/env csh +# +# new 2023 style (t)csh - works with tkrun now + +set file1 = foo # help for input file1 #> IFILE file1= +set file2 = bar # help for output file2 #> OFILE file2= +set dir3 = fum # help for input dir3 #> IDIR dir3= +set dir4 = baz # help for output dir4 #> ODIR dir4= +set hello = world # help for text entry hello #> ENTRY hello=world +set a = 1 # help for a, between 0 and 2 #> SCALE a=1 0:2:0.1 +set b = 2 # help for b, pick 1, 2 or 3 #> RADIO b=2 0,1,2 +set c = 3 # help for c, check any of 6 #> CHECK c=3 0,1,2,a,b,c + +# +foreach _arg ($*) + set $_arg +end + +echo file1=$file1 +echo file2=$file2 +echo dir3=$dir3 +echo dir4=$dir4 +echo hello=$hello +echo a=$a +echo b=$b +echo c=$c