Allow #[] to be used with glob