[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to make bash install to /bin/bash ?
From: |
microsuxx |
Subject: |
Re: how to make bash install to /bin/bash ? |
Date: |
Wed, 5 Feb 2025 16:18:11 +0100 |
mate , .. btw how did this email end up in my sent folder
hmh ..
so , i understand ur valid concerns
but its not my case
mine is , i either have termux , or a bare debian
and i dont use other sw's , or try to avoid to
termux , i want newest bash of course
debian , i dont use any else ( i dont have currently anything else than
phone termux and lil win wsl debian )
i meant to say
new bash in every case ..
thank you ++
On Wed, Feb 5, 2025, 3:46 PM Greg Wooledge <greg@wooledge.org> wrote:
> On Wed, Feb 05, 2025 at 09:39:28 -0500, Chet Ramey wrote:
> > On 2/5/25 8:46 AM, microsuxx wrote:
> > > i tried DESTDIR=something
> > > and it ended up in something/usr/*
> > >
> > > so i assume if i do DESTDIR=/
> > > it will end up in /usr/*
> >
> > You can do most of what you want with make install exec_prefix=/
> prefix=/usr
> >
> > >
> > > how to make it install to /bin/bash
> > > the bash binary at least
> >
> > install -c -m 0755 bash /bin/bash
>
> Compiling your own bash from source code is a good thing, but overwriting
> your operating system's /bin/bash with the one you just built may not be
> the wisest course of action. Any changes in bash's behavior could break
> shell scripts that you're not even aware exist.
>
> (Granted, the odds of this breaking stuff are lower now that a lot of
> vendors have gone with /bin/sh -> dash by default.)
>
> It's a lot safer to install your self-compiled bash versions in some
> other location, such as /usr/local/bin. You can add /usr/local/bin/bash
> to your /etc/shells if you need that to allow it to be used as a login
> shell.
>
>