Bug 7445 - bash2 and xemacs, error in font-lock-fontify-buffer
bash2 and xemacs, error in font-lock-fontify-buffer
Product: Red Hat Powertools
Classification: Retired
Component: xemacs (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Ngo Than
Depends On:
  Show dependency treegraph
Reported: 1999-11-30 10:45 EST by santini
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-02-08 14:08:51 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Patch to work-around the problem (829 bytes, patch)
1999-12-10 01:10 EST, fortytwo
no flags Details | Diff

  None (edit)
Description santini 1999-11-30 10:45:11 EST
RedHat has chosen to call the bash2 the new bash v2.x (to reduce downwards
compatibility problems?) thus introducing some little problem here and
there :-)

One of this is the "fontify"-cation of shell files in xemacs, which
results in all sort of strange errors (no file is opened at all, if
fontifycation is by default!). The reason seems to be that the elisp code
looks at the SHELL env variable to determine the correct fontifycation
style, and bash2 is not considered as a correct shell.

Suggestion: export SHELL=/bin/bash, but even better: why not throwing away
the old bash and using the v2.x?

Comment 1 Tim Powers 1999-11-30 11:13:59 EST
We would love to throw away the old bash and just use the new, but at the time
there were (and still are) issues with old bash scripts not working with bash2.

Just out of curiosity, when you do this "SHELL=/bin/bash" is the problem fixed?

Comment 2 fortytwo 1999-12-10 01:02:59 EST
Changing $SHELL to "/bin/bash" works.  Since it's such a simple problem, xemacs
is ready for the fix.  :)

In xemacs, Menuitem
Options->Customize->Emacs->Programming->Languages->Sh->Ancestor Alist

Click on the [INS] at the end and fill in

[INS] [DEL] Cons-cell:
            Symbol: bash2
            Symbol: bash

Patch to follow.
Comment 3 fortytwo 1999-12-10 01:10:59 EST
Created attachment 38 [details]
Patch to work-around the problem
Comment 4 Ngo Than 2000-02-08 14:08:59 EST
apply the patch to xemacs

Note You need to log in before you can comment on or make changes to this bug.