From fc9ab391a52dce801a9aa3568400d10b584b0eda Mon Sep 17 00:00:00 2001 From: Nelson Elhage Date: Wed, 29 Apr 2009 23:25:32 -0400 Subject: [PATCH] kdo: Add an emacs modeline, and make emacs happier with quoting. --- kerberos/kdo | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.44.0