[CLUE-Tech] Running User initial shell scripts under Slackware 7.1

Jeffery C. Cann jccann at home.com
Thu Jan 18 22:20:02 MST 2001


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

John,

If you run a shell init script like this:

$ .profile

The shell will execute the script into a child shell.  The kicker is that 
your exported variables will not be passed into your current shell.  This is 
why the script did not do anything.  To invoke in your current shell, do this:

$ . .profile

Thats (dot)(space)(dot)(profile).

As far as the init scripts on Slack -- 'They work for me' (tm).  I do have 
problems in KDE's konsole.  I am used to the ksh .profile.  The bash default 
profile is not .profile, but '.bash_profile.'  If you symlink your .profile 
to .bash_profile:

$ cd $HOME
$ ln -s .profile .bash_profile

That probably will solve your problem.

Jeff

On Thursday 18 January 2001 21:49, John Kottal wrote:
> I am trying to figure out why I cannot get my shell initialization
> scripts to run when I log onto Slackware 7.1.
>
> My understanding is that after the system initializes itself, it sets up
>
> the shell environment by running /etc/profile, which in turns runs
> whatever initialization scripts are in /etc/profile.d, and then should
> next run the local initialization scripts (.bashrc, for the Bash shell;
> or .profile and .kshrc for the Kornshell) in the user's home directory
> when the user logs in to set up the user shell environment. [NB: there
> is now a KSH93 shell available for Slackware; it requires glibc 2.2].
>
> This does not seem to be working either for shell. Furthermore, when I
> try and run the local .bashrc or .profile/.kshrc as shell scripts from
> within the user home directory, nothing happens. Permissions on the
> script files are set correctly, and I can run other shell scripts
> without problem.

If you run a shell init

>
> I finally ending up placing a copy of the .bashrc script I wanted in the
>
> /etc/profile.d as bashrc.sh; then the system sees it and runs it upon
> login.
>
> This, however, is not the way things should work. It should be reading
> the local initialization files to set up the local environment.
>
> Any ideas?
>
> John Kottal
>
>
>
> _______________________________________________
> CLUE-Tech mailing list
> CLUE-Tech at clue.denver.co.us
> http://clue.denver.co.us/mailman/listinfo/clue-tech

- -- 
jccann [at] home [dot] com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjpnzosACgkQw3/GBQk72kCx2ACeOJhVWQGEt6V3ZNa4DmU3jMtj
/bcAnRGoQnAo0kio76HTphKc8hJBvJn1
=48DC
-----END PGP SIGNATURE-----



More information about the clue-tech mailing list