Interactive csh or tcsh does not make comments. The character #introduces comment only in the script. (This is not like the behavior of sh and its derivatives, such as bash.) Quoting the man page csh(from Solaris 9, one of the remaining systems, where it cshis not only a symbolic link to tcsh)
, # , . , \ .
, .
tcsh, - :, :
% : 'This is not a comment, but it acts like one.'
( % , : - ). - ; , , :
% : This will create the file "oops.txt" > oops.txt
, : - , .
: Bourne , , .
/bin/csh : , :
csh% : 'This will not work.'
:: Too many arguments
csh%
( , , tcsh, csh.)
: csh, , , echo :
csh% echo 'This is not a comment, but it acts like one.' > /dev/null
: http://www.perl.com/doc/FMTEYEWTK/versus/csh.whynot