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