Public bug reported: Binary package hint: gedit
Gedit's syntax highlighting for 'sh' actually is for bash. Functions and arrays are not valid Bourne shell, and scripts starting with '/bin/sh' which use these will fail on: * Bourne shell (/bin/sh) * Bash version 3 and later on many systems, depending on the compile time options of bash. If bash version 3's default POSIX compatibility has been disabled, the behavior may be demonstrated using 'bash --posix file.sh' Simple fix: mark the syntax highlighting currently labeled as 'sh' as being 'bash'. Extended fix: include an actual Bourne shell syntax highlighting mode, which marks invalid bourne shell syntax in red. ProblemType: Bug Architecture: i386 Date: Fri Feb 29 09:39:52 2008 DistroRelease: Ubuntu 8.04 ExecutablePath: /usr/bin/gedit Package: gedit 2.21.2-0ubuntu1 PackageArchitecture: i386 ProcEnviron: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games LANG=en_AU.UTF-8 SHELL=/bin/bash SourcePackage: gedit Uname: Linux 2.6.24-10-generic i686 ** Affects: gedit (Ubuntu) Importance: Undecided Status: New ** Tags: apport-bug -- 'sh' syntax highlighting actually for bash, and uses syntax invalid for Bourne shell https://bugs.launchpad.net/bugs/196785 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs