Files
Michael BiancoandGitHub 9025dd16ea feat: detect shell type using shebang (#327)
* build: adding shell parsing package

* feat: change shell provider start command based on shebang

* test: test shell type selection in shell provider

* test: update snapshot
2025-11-06 15:28:43 -07:00

13 lines
289 B
Bash

#!/bin/bash
# Intentionally using a bash specific array syntax to ensure the correct shell is picked.
fruits=("apple" "banana" "cherry")
echo "Bash array test:"
for fruit in "${fruits[@]}"; do
echo "- $fruit"
done
echo "Array length: ${#fruits[@]}"
echo "Test completed successfully"