0

I'm having a bit of an odd issue with my terminal.

I'm used to the prompt being Joosts-Macbook:~ Joost$ or something of that nature, but all of a sudden it displays a number I don't recognise: n041134:~ Joost$. I've added a screenshot of the Terminal below.

enter image description here

It does not seem to properly start bash either, since I can't do ./script.sh to execute a script anymore - it requires me to type bash script.sh fully.

I'm on Mountain Lion 10.8. I'm not aware of anything I may have done that has caused this. I noticed it when I was trying to execute a shell script that did some find and replacing using sed, but it might have been like this earlier.

I tried the obvious fixes such as logging out and rebooting, but to no avail.

3
  • I was just told that this is in fact my host name, and by calling hostname the mystery was effectively solved. It turned out to be because I was connected to the university's network rather than my own, which changed my hostname. The bash execution thing seems to be an unrelated coincidence..
    – Joost
    Commented Feb 8, 2013 at 16:13
  • 1
    You can answer your own question, which in this case seems appropriate.
    – Ɱark Ƭ
    Commented Feb 15, 2013 at 21:08
  • You're right. I hadn't figured out the bash issue at the time, but I have now.
    – Joost
    Commented Feb 16, 2013 at 15:02

1 Answer 1

0

I was just told that this is in fact my host name, and by calling hostname the mystery was effectively solved. It turned out to be because I was connected to the university's network rather than my own, which changed my hostname.

The reason I couldn't properly execute shell scripts was an unrelated oddity. Apparently the permissions on the scripts I tried were not set properly. Coincidences made me link the two problems.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .