Someone
public text v1 · immutableHi,
just compiled tcsh.
how can i create a 1 line structure?
for example:
@ v = 1;
if($v) then
echo "hi";
else
echo "there";
endif
I'm guessing it would be something simillar to:
if($v) then echo "hi"; else echo "there"; endif
It would be so convenient if i could quickly type out things like that whenever i need a simple "if" or "while" on the command line instead of writting a file, changing permissions on it, executing it, then cleaning up afterwards.