/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

thepugautomatic.com
| | purefun.dev
2.4 parsecs away

Travel
| | When in doubt, always consider adding set -e and cd $(dirname $0) at the beginning of a shellscript. Why? Let's find out: When to use cd $(dirname $0) $0 is the currently executing script, so what the command does is to change current directory into the same directory as where the script resides. If you don't do this, any references to other files next to your script will be incorrect if you run the script from another directory.
| | lanziani.com
2.7 parsecs away

Travel
| | I do a big use of shell scripts, and many of them contain a for loop, do you know what normally happen when you press CTRL^C and the script is executing an action inside the loop?
| | seanmcp.com
3.2 parsecs away

Travel
| | Writing a script to read the package.json for you
| | mywiki.wooledge.org
19.3 parsecs away

Travel
| [AI summary] A technical guide explains common bash-specific features and provides dash-compatible workarounds for various scripting syntax elements.