Information needed - ash

Cristian Ionescu-Idbohrn cristian.ionescu-idbohrn at axis.com
Thu Oct 24 16:44:46 UTC 2013


On Thu, 24 Oct 2013, Denys Vlasenko wrote:
> On Wed, Oct 23, 2013 at 6:53 PM, Pravesh Raja Jindal <pravesh.jindal at gmail.com> wrote:
> > I am using ash as a part of BusyBox system and want to know if ash
> > supports any rc file for running scripts at the shell start up to set
> > up environment variables, etc just like we have .bashrc for bash
> > shell.
>
> Yes, it does.

Come on...  Give the guy more of your arm ;)

13107-/*
13108: * Read /etc/profile or .profile.
13109- */
13110-static void
13111-read_profile(const char *name)
--
13223-          const char *hp;
13224-
13225-          state = 1;
13226:          read_profile("/etc/profile");
13227- state1:
13228-          state = 2;
13229-          hp = lookupvar("HOME");
13230-          if (hp) {
13231:                  hp = concat_path_file(hp, ".profile");
13232-                  read_profile(hp);
13233-                  free((char*)hp);
13234-          }


Cheers,

-- 
Cristian


More information about the busybox mailing list