[lang-ref] ( trim_first ) ( bash )

@test "trim first" {
	# ${text##+([[:space:]])}
	shopt -s extglob
	text=$'\n\t  abc  def\t  \n  '
	trimmed="${text##+([[:space:]])}"
	[ "$trimmed" = $'abc  def\t  \n  ' ]
}