Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #241416
| From | Dan Ritter <dsr@randomstring.org> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: A .profile puzzle |
| Date | 2021-10-17 19:00 +0200 |
| Message-ID | <D9hFT-7Fm-1@gated-at.bofh.it> (permalink) |
| References | <D9h3c-7rV-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Gene Heskett wrote:
>
> The local electrical system, while better than Haiti's is getting to be a
> nuisance with 5 second power failures about weekly, or is that weakly?
That's a great case for a UPS...
> 1. Before the latest failure I could do all this as me because the mount
> point for the card is in my home directory, I own it all. And didn't
> have to be root to do any of it. This was not fixed by a 2nd reboot.
Are you mounting via /etc/fstab? If so, show us the line.
> 2. and another pesky thing is starting a konsole to do work, needs a
> $PATH modification that we used to put in ~.profile. But opening a
> terminal hasn't called a ". .profile" since about jessie. So thats
> another PITA.
>
> So, what has replaced .profile as the function for such as that in recent
> releases?
I'm guessing that your shell is /bin/sh. That used to be bash,
but now it's dash.
You could make your own shell bash -- just run chsh and log out,
then come back in again.
Note that .profile is supposed to be read only by a login
shell, whereas .bashrc will be read by every interactive shell.
Here's the chunk of man bash:
When bash is invoked as an interactive login shell, or as a
non-interactive shell with the --login option, it first reads and
executes commands from the file /etc/profile, if that file exists.
After reading that file, it looks for ~/.bash_profile, ~/.bash_login,
and ~/.profile, in that or der, and reads and executes commands from the
first one that exists and is readable. The --noprofile option may be
used when the shell is started to inhibit this behavior.
When an interactive login shell exits, or a non-interactive
login shell executes the exit builtin command, bash reads and executes
commands from the file ~/.bash_logout, if it exists.
When an interactive shell that is not a login shell is started,
bash reads and executes commands from /etc/bash.bashrc and ~/.bashrc, if
these files exist. This may be inhibited by using the --norc option.
The --rcfile file option will force bash to read and execute commands
from file instead of /etc/bash.bashrc and ~/.bashrc.
When bash is started non-interactively, to run a shell script,
for example, it looks for the variable BASH_ENV in the environment,
expands its value if it appears there, and uses the expanded value
as the name of a file to read and execute. Bash behaves as if the
following command were executed: if [ -n "$BASH_ENV" ]; then .
"$BASH_ENV"; fi but the value of the PATH variable is not used to search
for the filename.
-dsr-
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
A .profile puzzle Gene Heskett <gheskett@shentel.net> - 2021-10-17 18:20 +0200
Re: A .profile puzzle deloptes <emanoil.kotsev@deloptes.org> - 2021-10-17 18:40 +0200
Re: A .profile puzzle Gene Heskett <gheskett@shentel.net> - 2021-10-17 19:30 +0200
Re: A .profile puzzle "Andrew M.A. Cater" <amacater@einval.com> - 2021-10-17 19:40 +0200
Re: A .profile puzzle David Wright <deblis@lionunicorn.co.uk> - 2021-10-22 17:00 +0200
Re: A .profile puzzle Greg Wooledge <greg@wooledge.org> - 2021-10-17 20:10 +0200
Re: A .profile puzzle Gene Heskett <gheskett@shentel.net> - 2021-10-17 20:30 +0200
Re: A .profile puzzle Dan Ritter <dsr@randomstring.org> - 2021-10-17 19:00 +0200
Re: A .profile puzzle Gene Heskett <gheskett@shentel.net> - 2021-10-17 20:20 +0200
Re: A .profile puzzle songbird <songbird@anthive.com> - 2021-10-17 21:50 +0200
Re: A .profile puzzle Gene Heskett <gheskett@shentel.net> - 2021-10-17 23:00 +0200
Re: A .profile puzzle Stefan Monnier <monnier@iro.umontreal.ca> - 2021-10-17 23:20 +0200
Re: A .profile puzzle David Christensen <dpchrist@holgerdanske.com> - 2021-10-18 02:40 +0200
Re: A .profile puzzle Douglas McGarrett <dmcgarrett@optonline.net> - 2021-10-18 03:20 +0200
Re: A .profile puzzle Gene Heskett <gheskett@shentel.net> - 2021-10-18 06:00 +0200
Re: A .profile puzzle songbird <songbird@anthive.com> - 2021-10-18 05:20 +0200
Re: A .profile puzzle Will Mengarini <seldon@eskimo.com> - 2021-10-18 07:30 +0200
Re: A .profile puzzle Gene Heskett <gheskett@shentel.net> - 2021-10-18 07:50 +0200
Re: A .profile puzzle Greg Wooledge <greg@wooledge.org> - 2021-10-18 13:20 +0200
Re: A .profile puzzle Gene Heskett <gheskett@shentel.net> - 2021-10-18 15:00 +0200
Re: A .profile puzzle Greg Wooledge <greg@wooledge.org> - 2021-10-18 15:50 +0200
Re: A .profile puzzle David Wright <deblis@lionunicorn.co.uk> - 2021-10-18 18:20 +0200
Re: A .profile puzzle piorunz <piorunz@gmx.com> - 2021-10-24 04:10 +0200
Re: A .profile puzzle Gene Heskett <gheskett@shentel.net> - 2021-10-24 05:30 +0200
csiph-web