I wrote the following script to test the "printable characters" character class, as described here.
#!/bin/sh
case "foo" in
*[:print:]*) echo "found a printable character" ;;
*) echo "found no printable characters" ;;
esac
I expect this script to output found a printable character, at least one (in fact, all) characters in "foo" are printable. Instead, it outputs "found no printable characters". Why are the characters in "foo" not recognized as printable characters?