Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
anthk
on Sept 14, 2024
|
parent
|
context
|
favorite
| on:
Techniques I use to create a great user experience...
A tip:
sh -x $SCRIPT
shows a debugging trace on the script in a verbose way, it's unvaluable on errors.
You can use it as a shebang too:
#!/bin/sh -x
olejorgenb
on Sept 14, 2024
[–]
Thanks! I've always edited the script adding a `set -x` at the top. Never occurred to me that I the shell of course had a similar startup flag.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
You can use it as a shebang too: