Skip to content

Commit

Permalink
new style csh
Browse files Browse the repository at this point in the history
  • Loading branch information
teuben committed Jul 28, 2023
1 parent 685e1df commit 1874e34
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions example2.csh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1874e34

Please sign in to comment.