summaryrefslogtreecommitdiff
path: root/corebinutils/sh/tests/parser/ps1-expand1.0
blob: 351e6437a023a8e2117959df4d65de6887c97f39 (plain)
1
2
3
4
5
6
7
# Test simple variable expansion in PS1
testvar=abcdef
output=$(testvar=abcdef PS1='$testvar:' ENV=/dev/null ${SH} +m -i </dev/null 2>&1)
case $output in
*abcdef*) exit 0 ;;
*) echo "Expected 'abcdef' in prompt output"; exit 1 ;;
esac