Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kbuild: Fix handling of backslashes in *.cmd files
Commit c353acb ("kbuild: make: fix if_changed when command contains backslashes") attempted to handle backslashes in *.cmd files, but it only handled double backslashes for some reason. Changing make-cmd to also handle single backslashes fixes rebuilds with dash, but it breaks bash again. The reason is that the two shells disagree about the interpretation of backslash sequences in the echo builtin. The way out of this is to print the command with printf '%s\n'. While at it, document what the individual parts of make-cmd do and why. Reported-and-tested-by: Konstantin Khlebnikov <[email protected]> Reviewed-by: Sam Ravnborg <[email protected]> Signed-off-by: Michal Marek <[email protected]>
- Loading branch information