From 3d52c9de4d598fd596bbdd534e3550453135921e Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Sun, 26 May 2013 20:51:52 +0200 Subject: [PATCH] Minor fixes. --- .scripts/titlecase.awk | 9 ++++----- .xprofile | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.scripts/titlecase.awk b/.scripts/titlecase.awk index aa1ed432..b7f8ec0b 100755 --- a/.scripts/titlecase.awk +++ b/.scripts/titlecase.awk @@ -175,11 +175,10 @@ function titlecase(string) { match(a, /[[:alnum:]]/) a = toupper(substr(a, 1, RSTART)) substr(a, RSTART+1) - ## Double exception 2: Set 1st word after a colon, question mark, - ## double-quotes or exclamation point in title case. This kludge handles - ## multiple colons, question marks, etc. on the line. \a is the BEL or - ## CTRL-G character. - result = gensub(/([:?!"][^[:alnum:]]*)([a-zA-Z])/, "\\1\a\\2", "g", a) + ## Double exception 2: Set 1st word after a some punctuation marks in title + ## case. This kludge handles multiple colons, question marks, etc. on the + ## line. \a is the BEL or CTRL-G character. + result = gensub(/([:?!"-][^[:alnum:]]*)([a-zA-Z])/, "\\1\a\\2", "g", a) while (match(result, /\a/)) { beg = substr(result, 1, RSTART-1) cap = toupper(substr(result, RSTART+1, 1)) diff --git a/.xprofile b/.xprofile index ef350260..625251cb 100644 --- a/.xprofile +++ b/.xprofile @@ -118,5 +118,5 @@ if [ "$OSTYPE" = "linux-gnu" ] ; then [ -n "$(amixer 2>/dev/null | grep PCM)" ] && amixer set PCM 80% ## External device auto-mounting. - [ -n "$(comand -v udiskie)" ] && udiskie & + [ -n "$(command -v udiskie)" ] && udiskie & fi