FS#35458 - [fish] call to hostname which might not be availabe

Attached to Project: Community Packages
Opened by Benedict Etzel (BehEh) - Friday, 24 May 2013, 14:33 GMT
Last edited by Bartłomiej Piotrowski (Barthalion) - Sunday, 02 June 2013, 13:23 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Bartłomiej Piotrowski (Barthalion)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:


Additional info:
* package version(s)
* config and/or log files etc.


Steps to reproduce:
This task depends upon

Closed by  Bartłomiej Piotrowski (Barthalion)
Sunday, 02 June 2013, 13:23 GMT
Reason for closing:  Fixed
Additional comments about closing:  fish 2.0.0-2
Comment by Benedict Etzel (BehEh) - Friday, 24 May 2013, 14:34 GMT
Sorry, i misshit enter when submitting this error. I will attach further information.
Comment by Benedict Etzel (BehEh) - Friday, 24 May 2013, 14:40 GMT
A fresh install of the Community/fish package expects the command "hostname" to be available to determine the hostname to show in the default prompt.

After calling "fish" as root I get

"Welcome to fish, the friendly interactive shell
Type help for instuctions on how to use fish
fish: Unknown command "hostname"
/usr/share/fish/functions/fish_prompt.fish (line 6): hostname|cut -d . -f 1

in comand substitution
called on line 9 of file "/usr/share/fish/functions/fish_prompt.fish",

in function "fish_prompt",
called on standard input,

in command substitution
called on standard input,"


Editing line 6 of /usr/share/fish/functions/fish_prompt.fish to use "uname -n" the error message does not appear any more.

hostname is part of inetutils and not installed on the system.

Loading...