Ticket #1175 (closed defect: fixed)

Opened 12 years ago

Last modified 12 years ago

bash: LD_ASSUME_KERNEL: unbound variable with set -u

Reported by: jweiss Owned by:
Priority: normal Milestone: Precise Release
Component: -- Keywords:
Cc: kenta@… Fixed in version:
Upstream bug:

Description

The following was reported by kenta on test.dialup which recently took the latest debathena-dotfiles patch

I have

set -u

in my .bashrc, and very recently (in the last two days?) I
have begun seeing a message

bash: LD_ASSUME_KERNEL: unbound variable

every time I start a bash shell (including when creating a
new "screen" in screen).

Change History

comment:1 Changed 12 years ago by jdreed

  • Status changed from new to committed
  • Milestone changed from The Distant Future to Precise Release

Fix committed in r25647. Use -n "${LD_ASSUME_KERNEL+x}" instead of -n "$LD_ASSUME_KERNEL".

comment:2 Changed 12 years ago by jdreed

Anders points out that we want to fix #1084 at the same time.

comment:3 Changed 12 years ago by jdreed

  • Status changed from committed to development

comment:4 Changed 12 years ago by jdreed

I have tested this with two test accounts on different machines, and it works. The current dotfiles prevent you from logging in at all graphically if you 'set -u'. I'm going to move this to proposed tomorrow, and then production on Monday, unless someone objects.

comment:5 Changed 12 years ago by jdreed

  • Status changed from development to proposed

comment:6 Changed 12 years ago by jweiss

I've tested this and confirmed that it solves kenta's problem with "set -u"

comment:7 Changed 12 years ago by jdreed

  • Status changed from proposed to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.