Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Show HN: sol – A de-minifier for shell programs. Parent comment
https://unix.stackexchange.com/questions/253518/where-are-ba...
When writing bash, if I have a command with many switches, I use an array to avoid backslashes and make the intent clearer:
curl_cmd=( curl --silent --fail --output "$output_file" "$url" ) "${curl_cmd[@]}"
There are no comments on this comment yet.
https://unix.stackexchange.com/questions/253518/where-are-ba...
When writing bash, if I have a command with many switches, I use an array to avoid backslashes and make the intent clearer:
I also insist on long-form options in shell scripts since they are much more self-documenting as compared to single-letter options.