Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
printf %q' instead of
set -x': debug_run()
`set -x' + setting PS4 was really hackish. `printf %q' should guarantee the printed command line is properly quoted, and is equivalent to the command line that's actually run. Also, the (( verbosity ... )) tests are now only done inside functions. Also, the _msg() function is changed again to take the same approach as the new _quote_cmd_line() function does.
- Loading branch information
Showing
1 changed file
with
28 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters