All pastes #246068 Raw Edit

Someone

public text v1 · immutable
#246068 ·published 2006-11-11 20:41 UTC
rendered paste body
Hi,

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.