SliTaz SliTaz Forum archive

This forum is now a read-only archive

The SliTaz community has moved to Maille, a forum made for SliTaz.

We looked hard for a replacement for this aging forum, including a move from bbPress to FluxBB last June. But spam bots now get through sign-up even with mail confirmation, and these forum engines are barely maintained anymore. So we wrote a forum in the SliTaz spirit: small, fast, no JavaScript, works on old machines and in text browsers. Everything here stays readable.

Go to Maille

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.53 MiB (Peak: 1.77 MiB) ]