Create a 'stupid' bash script file with the shbang only outside emacs #!/bin/bash Then type: prueba=$(echo $PATH | sed 's|/home/paag|$HOME|g') When you close the parenthesis at the end of the line, you get a 'mismatched parenthesis' error message, when there is no such mismatch
In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) of 2021-08-31 built on emacs28 Repository revision: 03dcceeeeeda6cefe4c0a79be328dd44b289b20b Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12011000 System Description: Ubuntu 20.04.3 LTS
Important settings: value of $LC_MONETARY: es_ES.UTF-8 value of $LC_NUMERIC: es_ES.UTF-8 value of $LC_TIME: es_ES.UTF-8 value of $LANG: en_GB.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix
Major mode: Shell-script
Minor modes in effect: sh-electric-here-document-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t