OS: Ubuntu 18.04 or Kubuntu 18.04.
I have Gedit 3.28.1 on both systems. While looking at .bashrc
or /etc/skel/.bashrc
, I found an instance of "bracket match not found" as shown in the image below in both Ubuntu and Kubuntu:
Note that Gedit uses the same phrase for ()
, []
, and {}
Line 97 (as in a default .bashrc
) is this:
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
While the first instance is matched correctly (not shown in the image):
([ $? = 0 ] && echo terminal || echo error)
the second isn't:
(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')
The complete line is this:
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
Mousepad 0.4 also doesn't match the second instance whereas Geany 1.32 and Kate 17.12.3 do.
Do I need to install something to get Gedit and Mousepad to fix the "bracket match not found"? Or is it an issue with the algorithm used by these two text editors?
0 Answers