Re: to add ".bash/" along with ".bashrc" as the default init dir.

2014-11-24 Thread Steve Simmons

On Nov 23, 2014, at 2:08 PM, Chet Ramey  wrote:

> On 11/23/14 5:54 AM, Xie Yuheng wrote:
>> we should add ".bash/" along with ".bashrc" as the default init dir.
>> this will make things more flexible, and will not break any existed code.
>> to be "default" is important, people who right simple makefile can use
>> this, only when it is "default".
> 
> Is this of general enough use to add?  There are Linux distributions
> that have added shell code similar to what Piotr posted to add this
> functionality.  I don't think there's enough reason to make the change.

I hate the number of dotfiles that exist in $HOME - not bash's (well, bash's 
too), but every freaking application that does it. I hate not knowing what app 
installed the dotfiles. I hate that when I go to see what dotfiles exist for 
$APP, I see all the dotfiles for all the apps without know which ones belong 
with which.

My preference would be that the search order for any bash dotfiles are 
~/.bash/file, then ~/.file. It's backwards-compatible, and for those of us who 
have $HOME in a single filesystem across many machines, a symbolic or hard 
links from ~/.bashdotfile -> ~/.bash/foodotfile.







Re: to add ".bash/" along with ".bashrc" as the default init dir.

2014-11-24 Thread Greg Wooledge
On Mon, Nov 24, 2014 at 10:52:30AM -0500, Steve Simmons wrote:
> My preference would be that the search order for any bash dotfiles are
> ~/.bash/file, then ~/.file. It's backwards-compatible, and for those of us
> who have $HOME in a single filesystem across many machines, a symbolic or
> hard links from ~/.bashdotfile -> ~/.bash/foodotfile.

My preference would be to leave things alone.  That's also backwards-
compatible.



No logging when SSH with SYSLOG_HISTORY

2014-11-24 Thread Wladislav Wiebe

Hi!

for some reason is this bash logging feature only working when the bash is a
"bash", but in case it is a "-bash" it doesn't start logging.

Means, a simple use case:
ssh user@somemachine

$ echo $0
-bash

(no bash logging so far)

when typing "bash"
$ bash
$ echo $0
bash

--> now logging works.

Any reason why it doesn't start logging directly?
Or an idea how I can fix this?

Thanks a lot in advance!
--
WBR, Wladislav Wiebe