Opened 22 years ago

Closed 21 years ago

#378 closed defect (fixed)

Change bash config to make non interactive shells behave as interactive

Reported by: tushar@… Owned by: lfs-book@…
Priority: highest Milestone:
Component: Book Version: CVS
Severity: normal Keywords:
Cc:

Description

There are lot of reports on lfs-support and blfs-support related to problems with bash behaving differently for interactive shells and non-interactive shells.

A simple fix is to change the file config-top.h at compile time and comment out ""#define NON_INTERACTIVE_LOGIN_SHELLS". Redhat has been using it for a long time now and it is not reported to cause any problems since there is no hacking of the source involved, only a configuration change. Will be attaching a one liner patch to fix this.

Attachments (1)

bash-noninteractiveshell.patch (486 bytes ) - added by tushar@… 22 years ago.
Patch

Download all attachments as: .zip

Change History (10)

by tushar@…, 22 years ago

Patch

comment:1 by gerard@…, 22 years ago

Nice idea maybe to add as a comment to the bash installation (maybe, I didn't say it's going to happen) but this is a configure thing, not a bug fix. And quite frankly if people don't even bother reading the man page I really don't feel for them. The man page quite clearly explains how bash works and which files it reads under which circumstances.

comment:2 by gerard@…, 22 years ago

Priority: normallowest

comment:3 by gerard@…, 22 years ago

Priority: lowestnormal

Let's add the note. It's good valueable info.

comment:4 by gerard@…, 22 years ago

Priority: normallow

comment:5 by jeremy@…, 21 years ago

Priority: lowhighest

This one we should be able to get in before 5.0 - setting to P1

comment:6 by gerard@…, 21 years ago

Status: newassigned

test

comment:7 by gerard@…, 21 years ago

Status: assignednew

comment:8 by gerard@…, 21 years ago

Moving to lfs-dev, not sure yet if it should go in book or not.

comment:9 by jeremy@…, 21 years ago

Resolution: fixed
Status: newclosed

Added a note to the chapter 6 bash instructions regarding this possible change.

Note: See TracTickets for help on using tickets.