[CentOS] mac address in prompt

2008-06-10 Thread Gergely Buday
Hi there, for some reasons bash writes out my host's mac address as a result of including \h in PS1. Do you know why? This was not always so. [EMAIL PROTECTED] ~]$ echo $PS1 [EMAIL PROTECTED] \W]\$ - Gergely ___ CentOS mailing list CentOS@centos.org

Re: [CentOS] mac address in prompt

2008-06-10 Thread Ralph Angenendt
Gergely Buday wrote: Hi there, for some reasons bash writes out my host's mac address as a result of including \h in PS1. Do you know why? This was not always so. [EMAIL PROTECTED] ~]$ echo $PS1 [EMAIL PROTECTED] \W]\$ What does hostname -f come back with? Ralph pgpevllnoz91n.pgp

Re: [CentOS] mac address in prompt

2008-06-10 Thread Gergely Buday
for some reasons bash writes out my host's mac address as a result of including \h in PS1. Do you know why? This was not always so. [EMAIL PROTECTED] ~]$ echo $PS1 [EMAIL PROTECTED] \W]\$ What does hostname -f come back with? [EMAIL PROTECTED] ~]$ hostname -f hostname: Unknown host After

Re: [CentOS] mac address in prompt

2008-06-10 Thread Ralph Angenendt
Gergely Buday wrote: [EMAIL PROTECTED] ~]$ hostname -f hostname: Unknown host After this I set hostname with the similarly-named command and now it works, thanks for the tip. You might want to add the correct hostname in /etc/sysconfig/network, so that the change will survive reboots ...