SliTaz SliTaz Forum

You are not logged in.

#1 2015-10-02 20:32:54

llev
Member
Registered: 2011-12-09
Posts: 568

"bash" package overwrites user's .bashrc

Hi,

I just upgraded my packages. Bash was already my default shell, but when asked if I wanted to make it the default I said yes (go figure). Then my .bashrc was overwrote by the default one...

I guess there should be a noclobber option added to the cp command that "installs" .bashrc files (mmmh, I've just seen busybox cp has no -n option, so a test would be required). Or don't install any .bashrc ? I think bash is supposed to source /etc/bashrc if there's no user .bashrc .

Cheers

Offline

#2 2015-10-02 22:21:15

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: "bash" package overwrites user's .bashrc

Hi llev,

This behavior is the part of installation script:

http://pkgs.slitaz.org/search.sh?receipt=bash

I think we should add one condition to not to create/overwrite .bashrc if it already exists.

Thank you for reporting!

PS. Fixed: http://hg.slitaz.org/wok/rev/27d55e263e2d http://hg.slitaz.org/wok/rev/303e73fdfb01

Download: http://cook.slitaz.org/cooker.cgi?download=bash-4.3.42.tazpkg

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.016 seconds, 7 queries executed - Memory usage: 1.52 MiB (Peak: 1.77 MiB) ]