Comment Comment by higherhalf Seems a little complicated when you can do: //usr/bin/env rustc "$0" && ./config "$@"; exit Or //usr/bin/env rustc --edition 2024 "$0" && ./$(basename $0 .rs); rm $(basename $0 .rs); exit parent higherhalf 1 year ago