Bug 242732 - "HOSTNAME: Undefined variable." and "Faulty alias 'precmd' removed."
Summary: "HOSTNAME: Undefined variable." and "Faulty alias 'precmd' removed."
Alias: None
Product: Fedora
Classification: Fedora
Component: setup   
(Show other bugs)
Version: rawhide
Hardware: All Linux
Target Milestone: ---
Assignee: Phil Knirsch
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2007-06-05 15:20 UTC by Nalin Dahyabhai
Modified: 2015-03-05 01:18 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-06-06 12:56:23 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Nalin Dahyabhai 2007-06-05 15:20:11 UTC
Description of problem:
setup-2.6.6-1.fc8 introduces a new default precmd (as part of resolving bug
#199817), but that alias depends on the "HOSTNAME" environment variable being
set, which doesn't always happen.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. ssh -t rawhidebox screen -R
Actual results:
HOSTNAME: Undefined variable.
Faulty alias 'precmd' removed.

Additional info:
We probably want to check that the terminal is of a type which can even handle
this control sequence before setting it, too, as is done in /etc/bashrc.

Comment 1 Nalin Dahyabhai 2007-06-05 15:20:53 UTC
Oh, duh.  I should have mentioned somewhere that this change was made in
/etc/csh.cshrc, so it's only visible to users who use tcsh.

Comment 2 Phil Knirsch 2007-06-06 12:56:23 UTC
Urgs, good catch. I just took a look at the way we do it in bashrc and will
adapt the cshrc changes to match those again, too. The next setup package will
contain a fix.


Read ya, Phil

Comment 3 Nalin Dahyabhai 2007-06-21 17:55:20 UTC
The new package doesn't appear to have made it out yet.

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