So it is no bug. There are two types of shell, login (from a tty) and
non-login (from x, so gnome-terminal, xterm and other emulators). Login
looks to .profile, .bash_profile or .bash_login and sources those files
whereas non-login sources .bashrc (it is more complicated, actually,see
the man page).
Ubuntu by default puts this .profile file in home users directory:
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
Which reads .bashrc even for login shells. I must have inadvertedly
deleted my -profile page. I guess you did the same. So closing this as
invalid, for user must call this upon herself by her own devices.
** Changed in: shadow (Ubuntu)
Status: Confirmed => Invalid
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/934469
Title:
Virtual terminals resets Bash history to last 500 entries even when it
is set to more entries
To manage notifications about this bug go to:
https://bugs.launchpad.net/linux/+bug/934469/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs