Skip to content

Files

Latest commit

19b6109 · Feb 10, 2025

History

History
33 lines (31 loc) · 798 Bytes

entry.md

File metadata and controls

33 lines (31 loc) · 798 Bytes
aliases category classification date date_modified draft id image links local_archive_links pinned print series tags title type
set-x-and-bash
bash
public
2022-12-27 14:26:49 -0800
2022-12-27 14:26:49 -0800
false
20221227222649
attachments/set-x-and-bash.html
false
false
bash
command-line
debug
troubleshoot
Set -x and Bash
tech-note

Good comment from an interestingly named user on an r/bash thread.

Great points. I never add set -x to my scripts, or the interactive shell I'm in. Instead, I use bash -x $script.sh. don't have to remember to set +x or remove a line from the script.

— u/CaptainDickbag