改善至POSIX sh，避免使用bashisms。
```
n=0
for item in "$@"; do
  echo "Processing item $item..."
  n=$((n + 1))
done
```
user
```sh
n=0
for item do
  echo "Processing item $item..."
  n=$((n + 1))
done
```
assistant