     eval "$settings" #restore extglob settings } fun testingvar <<<"/path/file"; echo "$testingvar" fun testingvar <<<"'/path/file'"; echo "$testingvar" fun testingvar <<<"  /pa'th/ f'ile'"; echo "$testingvar"