view unixSoft/otherbin/emacs.sh @ 530:dbb75edda2ff default tip

cleanup: remove ancient distnoted reaper script Surely this bug has been fixed in the 9+ years that the script has been run once a minute by cron on my laptop. To my surprise, it looks like the Migration Assistant even managed to carry it across laptops!
author Augie Fackler <raf@durin42.com>
date Sat, 03 Jan 2026 19:12:16 -0500
parents 7983184eb8d8
children
line wrap: on
line source

#!/bin/sh
if [ "`uname`" = "Darwin" ] ; then
    if hash code 2>/dev/null ; then
        if [ "$1" = "-n" ] ; then
            shift
            code "$@"
        else
            code --wait "$@"
        fi
    else
        open -a emacs "$@"
    fi
else
    emacs -nw "$@"
fi