consolidate command line escaping
Quoted 11 lines
Review
Quoted 3 lines
(quoted diff) +1
-2-cmd = @$(if $($(quiet)cmd_$(1)),\ - echo ' $(call escsq,$($(quiet)cmd_$(1)))' &&) $(cmd_$(1)) +cmd = @$(echo-cmd) $(cmd_$(1))Here you replace
echo 'xxx' && cmdwith
echo 'xxx'; cmdSince we assume echo will always succeed I see no difference in behaviour, but I recall the '&&' was there for some specific reason. Just wondering why it is so - I see no problems with it.
Since I didn't see a difference in behavior, and it permitted more re-use of existing constructs, I thought it'd be reasonable to be replaced; I didn't know of anything that would require the &&.
Jan