sh Assistant — POSIX-Aware Script Review
An sh assistant tuned for POSIX shell — every finding respects the `#!/bin/sh` contract, and every suggested fix stays within portable syntax.
A portable rewrite the assistant suggests
# Before (bashism)
files=( *.log )
# After (POSIX)
set -- *.log
[ "$#" -eq 0 ] && exit 0
for f do
printf '%s\n' "$f"
done
POSIX-safe suggestions
Every fix the assistant suggests is checked for POSIX compatibility before it lands in the output. No `[[ ]]`, no arrays, no local — just portable constructs that run under dash, ash, and bash --posix.
What it explains
For each finding: what the pattern does, why it's a problem, and how the suggested rewrite is safer. Great for teams migrating from bash to portable sh.
What it does not do
Never executes the script. Never sends it to training. History and cache live only in your browser.
Frequently asked questions
- Is the sh assistant free?
- Yes — free for interactive use, no signup required.
- Can it convert Bash to POSIX sh?
- It suggests portable rewrites where possible. Some Bash features (associative arrays, mapfile) have no POSIX equivalent — those get flagged with a portability warning.
- Does it work for dash and ash?
- Yes. Findings are portable to any POSIX shell.