Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7793521
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T22:30:53+00:00 2026-06-01T22:30:53+00:00

my MAC is getting hair-wired after I change console to ksh, and change it

  • 0

my MAC is getting hair-wired after I change console to ksh, and change it back again to /bin/bash

  1. the console prompt is now static bash-3.2 regardless current directory I am in. Meanwhile in .bash_profile I have set # modify console
    export PS1=”\W > “

  2. rake gem and few others in Ruby are missing, although it was reinstalled again after I run bundle install , but there are subsequent strange issue, e.g. rake command does not hit the right rake file..

Any idea?

Thanks a lot.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T22:30:54+00:00Added an answer on June 1, 2026 at 10:30 pm

    The .bash_profile is only run by bash when you first log in. (It only gets run by Terminal if you have Terminal set up to make each shell a “login shell”). If you have commands that you want to get run every time you fire up bash, even if it’s not a login shell, you should put them in .bashrc instead. But you can always make a shell be a login shell by running bash --login instead of just bash.

    Not sure where your ksh comes from, but note that it doesn’t understand ‘\W’ etc in the prompt string, so I would expect you to get a literal ‘\W’ in the prompt instead of the expanded working dir. If you’re running ksh as a login shell, it’s probably something in the .profile (or /etc/profile, etc.). ksh doesn’t have an exact equivalent of .bashrc, but if $ENV is set to a filename after the profile runs, that file is executed as well (even on non-login shells, if ENV is already set when the shell starts). Ksh, of course, ignores .bash_profile and .bashrc.

    Since there’s no ref to gems in the body of your question (anymore?), you might want to change the question and remove the Ruby tag…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm getting back in to Cocoa development on the Mac after a long stint
Even after installing via brew findutils on mac I keep getting a very very
I am just getting started again with Mac development. I am using CoreMIDI which
I am getting started doing ASP.NET on my Mac using Mono, and I'm wondering
I am having trouble getting postgresql getting set up on Mac OSX Lion. I
When archiving my Mac OS application, I'm getting a Generic Xcode Archive. I have
I'm updating application for Mac OS X 10.6 and getting this error. I believe
Trying to generate JavaDocs for the Android lint-cli project on Mac 10.7 Keep getting
I'm pretty new to cocoa for Mac development. I'm currently struggling with getting a
i am using NetworkInterface class to get the MAC address but i am getting

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.