PPv4: Why isn't .bashrc being executed

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

PPv4: Why isn't .bashrc being executed

Postby winestock » Sat Feb 02, 2013 3:51 pm

After I installed linux-kirkwood 3.7.5 as a clean install, I noticed that when I login to my user non-root account it appears that .bashrc is not being executed. The reason I know this is because in the .bashrc:

$this->bbcode_second_pass_code('', '
#
# ~/.bashrc
#

# If not running interactively, don't do anything
[[ $- != *i* ]] && return

alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '
')

When I login and execute "alias" it comes back with no entries. It also appears that .bash_profile is not being executed. I added the line "echo "test" >~/a.txt" at the beginng and after I login into the user account there is no a.txt file created. I even tried changing the permissions to 755 on both .bash_profile and .bashrc.

Is .bash_profile and .bashrc no longer being executed?
Pogoplug Series 4 / Linux-Kirkwood 3.10.10-2
winestock
 
Posts: 134
Joined: Mon Nov 05, 2012 12:03 am

Re: PPv4: Why isn't .bashrc being executed

Postby moonman » Sat Feb 02, 2013 9:57 pm

There's a global bashrc: /etc/bash.bashrc
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 2 guests