trim7.0 revision 219623
1219623Sjilles# $FreeBSD: head/tools/regression/bin/sh/expansion/trim7.0 219623 2011-03-13 20:02:39Z jilles $ 2219623Sjilles 3219623Sjillesset -- 1 2 3 4 5 6 7 8 9 10 11 12 13 4219623Sjilles[ "${##1}" = 3 ] || echo '${##1} wrong' 5219623Sjilles[ "${###1}" = 3 ] || echo '${###1} wrong' 6219623Sjilles[ "${###}" = 13 ] || echo '${###} wrong' 7219623Sjilles[ "${#%3}" = 1 ] || echo '${#%3} wrong' 8219623Sjilles[ "${#%%3}" = 1 ] || echo '${#%%3} wrong' 9219623Sjilles[ "${#%%}" = 13 ] || echo '${#%%} wrong' 10219623Sjillesset -- 11219623Sjilles[ "${##0}" = "" ] || echo '${##0} wrong' 12219623Sjilles[ "${###0}" = "" ] || echo '${###0} wrong' 13219623Sjilles[ "${###}" = 0 ] || echo '${###} wrong' 14219623Sjilles[ "${#%0}" = "" ] || echo '${#%0} wrong' 15219623Sjilles[ "${#%%0}" = "" ] || echo '${#%%0} wrong' 16219623Sjilles[ "${#%%}" = 0 ] || echo '${#%%} wrong' 17