I'd be surprised if the tilde got this far, won't it have been expanded in the processing of a previous `export` statement?