Subject: Re: bug#25585: Fwd: [reddit] 1 new message from u/hvis

From: Lars Ingebrigtsen <[email-masked]>
Date: Wed, 19 Aug 2020 13:49:16 +0200

Bob Hepple <[email-masked]> writes:

> This patch (suggested by https://reddit.com/u/hvis) works for me ...
>
>     diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el      
>
>     index a0bbf55..dc296a2 100644      
>     --- a/lisp/progmodes/sh-script.el      
>     +++ b/lisp/progmodes/sh-script.el      
>     @@ -483,6 +483,7 @@ sh-mode-syntax-table      
>         ?~ "_"      
>         ?, "_"      
>         ?= "."      
>     +        ?/ "."      
>         ?\; "."      
>         ?| "."      
>         ?& "."      

I've respun the patch below...

So this would change the / character into a punctuation character in
shell buffers?  It fixes the reported problem, and it does seem
reasonable to have / classified like that.

Does anybody object to applying this patch?  There may be unwanted side
effects...

diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el
index 5a47594878..8cd3aad268 100644
--- a/lisp/progmodes/sh-script.el
+++ b/lisp/progmodes/sh-script.el
@@ -386,6 +386,7 @@ sh-mode-syntax-table
 	?~ "_"
 	?, "_"
 	?= "."
+	?/ "."
 	?\; "."
 	?| "."
 	?& "."

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no