Re: Bash startup files

2017-10-29 Thread Cameron Simpson
On 28Oct2017 10:02, Tom H wrote: On Wed, Oct 25, 2017 at 6:13 PM, Cameron Simpson wrote: There are at least 2 things wrong. First, the .bashrc (which one presumes first came from the template in /etc/skel) should source /etc/bashrc _first_, not last. Second, /etc/bashrc should _not_ be sour

Re: Bash startup files

2017-10-28 Thread Tom H
On Wed, Oct 25, 2017 at 6:13 PM, Cameron Simpson wrote: > > There are at least 2 things wrong. > > First, the .bashrc (which one presumes first came from the template in > /etc/skel) should source /etc/bashrc _first_, not last. > > Second, /etc/bashrc should _not_ be sourcing anything in > /etc/pr

Re: Bash startup files

2017-10-27 Thread GianPiero Puccioni
[Cameron Simpson] > The hint could be better. While it might seem obvious, saying the "User > specific aliases and functions should go below this line" might be an > improvement. > > I'm presuming the OP put their stuff up the top. Yes I did, but I realized that my .bashrc comes from a very old F

Re: Bash startup files

2017-10-26 Thread Cameron Simpson
On 26Oct2017 12:57, George N. White III wrote: On fedora 26 server, /etc/skel/.bashrc is: # .bashrc # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi # Uncomment the following line if you don't like systemctl's auto-paging feature: # export SYSTEMD_PAGER= # User spe

Re: Bash startup files

2017-10-26 Thread George N. White III
On 25 October 2017 at 09:24, GianPiero Puccioni < gianpiero.pucci...@isc.cnr.it> wrote: > Hi, > > I have a question about the system startup files for bash. > > The problem I had was that I set up an alias in ~/.bashrc, let's say > alias ls="ls -lh" > but it didn't work as "alias ls" reported > al

Re: Bash startup files

2017-10-26 Thread Tim
Allegedly, on or about 26 October 2017, George N. White III sent: > When there is a choice between having more things "just work" for > pointy-clicky users who have never encountered a terminal at a cost > of additional complexity for guru-class users who work with the > shell, the "just work" opti

Re: Bash startup files

2017-10-26 Thread George N. White III
On 25 October 2017 at 19:13, Cameron Simpson wrote: > On 25Oct2017 14:24, GianPiero Puccioni > wrote: > >> I have a question about the system startup files for bash. >> >> The problem I had was that I set up an alias in ~/.bashrc, let's say >> alias ls="ls -lh" >> but it didn't work as "alias ls

Re: Bash startup files

2017-10-25 Thread Cameron Simpson
On 25Oct2017 14:24, GianPiero Puccioni wrote: I have a question about the system startup files for bash. The problem I had was that I set up an alias in ~/.bashrc, let's say alias ls="ls -lh" but it didn't work as "alias ls" reported alias ls='ls --color=auto' What happens is that at the end ~

Bash startup files

2017-10-25 Thread GianPiero Puccioni
Hi, I have a question about the system startup files for bash. The problem I had was that I set up an alias in ~/.bashrc, let's say alias ls="ls -lh" but it didn't work as "alias ls" reported alias ls='ls --color=auto' What happens is that at the end ~/.bashrc sources /etc/bashrc which sources