#/bin/sh set -e for d in ~/.u-he/*/dialog.[36][24]; do if test -f $d.real; then continue; fi mv "$d" "$d.real" cat > $d << EOF #!/bin/sh unset LD_LIBRARY_PATH exec \$(readlink -f \$0).real "\$@" EOF chmod +x $d done