Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using the terminal for some debugging and I noticed that it has stopped displaying my user before the path. Now its displaying (null) like so:

(null):mspgcc-examples dean$

Whats changed? As i've changed no configuration to change it. Viewing the shell variable $PS1 I get the following results:

(null):mspgcc-examples dean$ echo $PS1
\h:\W \u\$
(null):mspgcc-examples dean$ 
share|improve this question
please, provide your $PS1 value – Eir Nym Mar 16 '13 at 15:14
Is $PS1 a shell variable? – Dean Mar 16 '13 at 15:53
Yes, use echo $PS1 to display its value. Also: try to open a new tab in Terminal (with Cmd-T) and check the prompt there. – patrix Mar 16 '13 at 16:12
And please check whether… solves your problem – patrix Mar 16 '13 at 16:13

You can read through the thread on Apple Discussion Group for details. The most important that some routers doesn't like computer names which can't be part of valid DNS name (English letters, numbers, dashes, underscores).

To name my Mac I use something like Eir-Mac or EirMac and have no problems.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.