x=a
echo Nothing:${x#[]a]}
echo Nothing:"${x#[]a]}"
echo Nothing:${x%[]a]}
echo Nothing:"${x%[]a]}"
echo Ok:$?