#!/bin/sh if [ -z "$1" ] then setsid -f emacsclient . >/dev/null 2>&1 || setsid -f emacs . >/dev/null 2>&1 else setsid -f emacsclient "$@" >/dev/null 2>&1 || setsid -f emacs "$@" >/dev/null 2>&1 fi