The ash tag has no wiki summary.
3
votes
1answer
154 views
Need to improve urlencode function
I need a way to URL encode strings with a shell script on a OpenWRT device running old version of busybox.
Right now I ended up with the following code:
urlencode() {
echo "$@" | awk -v ORS="" '{ ...
6
votes
1answer
345 views
Are dash, ash and sh script 100% compatible?
I wanted to know whether scripts written for dash, ash, and sh are 100% compatible?
Are there any added features to dash or ash, or syntax change?
From what I heard, ash is a direct descendant of ...
0
votes
3answers
907 views
Why does this incrementing for loop return a bad variable?
I'm trying to call this shell script from within the CLI of GRASS GIS:
for (( day=5; day<367; day+5 )); do
# commands that I've tested without a loop.
done
exit 0
returns
Syntax error: Bad ...
22
votes
1answer
623 views
Avoiding “BASH-isms” in shell scripts
Does there exist a tool similar to Perl::Critic that will inspect your shell scripts and point out flaws, portability issues, uses of non-standard programs without fallbacks, depreciated program uses, ...