3 ms·
Those control structures do work properly - the shell reads ahead until it finds the end token, and fails if it's absent. It is true that there remains the pro
by dllthomas 12y ago
Those control structures do work properly - the shell reads ahead until it finds the end token, and fails if it's absent.
It is true that there remains the problem of potential truncation exactly at the end of a top-level line, but I contend that "it stops running here" is a much easier thing to reason about (and, strictly, could always happen if hit with a SIGKILL anyway) than "does the meaning of this line change if we cut it off in a weird place".