[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bash complete.c
From: |
Bob Proulx |
Subject: |
Re: bash complete.c |
Date: |
Sat, 27 Dec 2014 11:08:15 -0700 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
Vincent Leduc wrote:
> The null redirect was used for the /etc/issue to not be shown
> here. I mean although we dont have any tty attached, i assume the
> builtin should not do this. I only tested it with an older release,
> as you said, it seems to be corrected.
If I don't include -t then I get the following back from bash.
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
I assumed that was what you were trying to redirect. Adding the -t
sets up a tty and that particular part of the problem is avoided.
As far as /etc/issue goes another useful thing is to touch a file
named "$HOME/.hushlogin". If .hushlogin exists then the /etc/issue
and /etc/motd are not emitted at login time. That is much nicer for
me. I am well aware of the uname -a and license status of the systems
I am using. I don't need to see that same message again and again.
This is documented in the login(1) man page.
man login
$HOME/.hushlogin
Suppress printing of system messages.
And so a normal thing for me when getting an account set up is to
always create that file in order to make hopping around systems less
verbose.
touch ~/.hushlogin
Bob