Correction : tool=$(readlink "$tool") .