You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The script is nonportable to other shells already because of its
use of trap (and other features, such as implicit assumptions made
about echo, and the function keyword), which its hashbang already
clearly conveys.
This uses:
- $(<X) in place of $(cat X), to have the shell read the file
directly rather than using cat.
- printf -v in one place to set a variable rather than printing.
This eliminates a command substitution that was harder to read.
0 commit comments