xref: /freebsd/bin/sh/tests/parser/ps1-expand1.0 (revision 8ccc0d235c226d84112561d453c49904398d085c)
1# Test simple variable expansion in PS1
2testvar=abcdef
3output=$(testvar=abcdef PS1='$testvar:' ENV=/dev/null ${SH} +m -i </dev/null 2>&1)
4case $output in
5*abcdef*) exit 0 ;;
6*) echo "Expected 'abcdef' in prompt output"; exit 1 ;;
7esac
8