Skip to main content
Question

.bashrc on OS X 10.10. Yosemite

  • August 24, 2015
  • 3 replies
  • 23 views

dstranathan
Forum|alt.badge.img+19

Im assisting a scientist in preparing 10 new OS X 10.10.5 Macs for a class that will involve command line programs and scripts.

Since the Darwin “rm” command runs with no breaks the teaching scientist last has, in previous years of instructing this particular course had the students create a ~/.bashrc file and add the alias rm=”rm -i” into it, which worked for previous semesters (using OS X 10.9 Mavericks & OS X 10.8 Mountain Lion in the courses)

This year, 2015 (using OS X 10.10.5 Yosemite) it does not work the same as previous years; the students appear to have to manually source ~/.bashrc to get it to work. He also tried adding “source ~/.bashrc” to their .bash_profile files (after creating the files) and this still does not work.

Any thoughts or observations regarding OS X 10.10's bash environment? Has something changed?

3 replies

Forum|alt.badge.img+13
  • Valued Contributor
  • August 24, 2015

The whole application containment is driving me nuts, I sort of hate it. Possibly related?


Forum|alt.badge.img+10
  • Contributor
  • August 24, 2015

I'm unable to replicate the behaviour.

Creating ~/.bashrc and adding source ~/.bashrc to ~/.bash_profile, does process the .bashrc file, and the alias.


dstranathan
Forum|alt.badge.img+19
  • Author
  • Valued Contributor
  • August 24, 2015

Looks like it was an error. Smart quotes kicked-in and borked the ~/.bashrc file I think.

My 10.10.5 test machine is working fine.

False alarm perhaps. Ill test more.