Benches macOS

2

bash environment variables

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

This is about a friend's MacBook; mine is a MacBook Pro.) Running Terminal on his MacBook, it starts up using a bash shell, but the environment variables HOSTTYPE and MACHTYPE indicate a powerpc instead of the i386 that he actually has. If I run a tcsh subshell, the variables are set correctly. He has no .profile file, nor .bashrc, etc., and the /etc/profile is normal. Why should it think it is a powerpc?

Doing "uname -a" produces normal results; it's an i386. Presumably these incorrect variables screw up shell scripts (wrong libraries are accessed). What is responsible for setting these environment variables, and what can be done about it?

I also posted this question on the MacBook forum.

John Doner

2 replies

Sign in or join Beachball Help to reply.

  1. 0

    iBod

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Just a wild guess, but is his Terminal running in Rosetta mode?

    Do a Get Info on the Terminal.app application and see if the Rosetta checkbox is ticked.

    User uploaded file

  2. 0

    jedoner

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    No, it wasn't running in Rosetta mode. Darn! That would have explained it.

    John