views:

74

answers:

2

What does an ampersand at the beginning of a line do in csh? It seems to be ignored (with no error message), but why?

A: 

I can't find anything in csh docs about it. However, I know in make it suppresses any output from the command (but still runs it). Perhaps that's what it is doing.

T.E.D.
In which version of 'make' does ' I know of '-' to stop 'make' paying attention to a non-zero exit status.
Jonathan Leffler
+2  A: 

Found something interesting:

The semicolon (;) character separates successive commands on a single command line. For example,

% <command1> ; <command2>

executes <command1>, and when it finishes, <command2> gets executed.

The ampersand character (&) is similar to the semicolon (;) but does not wait for <command1> to finish.

Maybe it's treating it like an empty command?

JoelFan
Jonathan Leffler