From: Nelson Elhage Date: Thu, 30 Apr 2009 03:25:32 +0000 (-0400) Subject: kdo: Add an emacs modeline, and make emacs happier with quoting. X-Git-Url: https://snippets.scripts.mit.edu/gitweb.cgi/Scripts/git/.git/commitdiff_plain/fc9ab391a52dce801a9aa3568400d10b584b0eda kdo: Add an emacs modeline, and make emacs happier with quoting. --- diff --git a/kerberos/kdo b/kerberos/kdo index b6a755c..059612e 100644 --- a/kerberos/kdo +++ b/kerberos/kdo @@ -1,3 +1,4 @@ +# -*- mode: sh -*- # kdo is a shell function for interacting with multiple Kerberos # credential caches. # @@ -48,6 +49,7 @@ if [ "Darwin" = "$(uname)" ]; then knewcache () { princ="$1"; shift local oldcache="$(klist | grep 'Kerberos 5 ticket cache' | cut -f 2 -d "'")" + # " # <-- emacs thinks there's an unbalanced " on the previous line. kinit "$@" "$princ" || return 1 cache="$(kfindcache "$princ")" # On OS X, kinit will switch your default credential cache to