From 8cec35c42eefe184f694c62f5d58b7fd6009141c Mon Sep 17 00:00:00 2001
From: Dan Nicolaescu <dann@ics.uci.edu>
Date: Wed, 11 May 2005 22:57:25 +0000
Subject: [PATCH] (sh-mode-default-syntax-table): Set the syntax of $ to "'"
 (quote).

---
 lisp/ChangeLog              | 5 +++++
 lisp/progmodes/sh-script.el | 4 ++++
 2 files changed, 9 insertions(+)

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 5a12dd84340..9ae919c98c4 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2005-05-11  Dan Nicolaescu  <dann@ics.uci.edu>
+
+	* progmodes/sh-script.el (sh-mode-default-syntax-table): Set the
+	syntax of $ to "'" (quote).
+
 2005-05-11  Reiner Steib  <Reiner.Steib@gmx.de>
 
 	* dnd.el (dnd-protocol-alist): Improve custom type.
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el
index 70172e22732..ae024e8111e 100644
--- a/lisp/progmodes/sh-script.el
+++ b/lisp/progmodes/sh-script.el
@@ -414,6 +414,10 @@ This is buffer-local in every such buffer.")
 	?\" "\"\""
 	?\' "\"'"
 	?\` "\"`"
+	;; ?$ might also have a ". p" syntax. Both "'" and ". p" seem
+	;; to work fine. This is needed so that dabbrev-expand
+	;; $VARNAME works.
+	?$ "'"
 	?! "_"
 	?% "_"
 	?: "_"
-- 
2.39.5