~sircmpwn/sr.ht-discuss

6 5

[builds.sr.ht] Make bash default shell on debian

Details
Message ID
<1622059050.562786273@f383.i.mail.ru>
DKIM signature
pass
Download raw message
I submitted manifest to builds.sr.ht . I picked debian/stable as image. Build failed, and I logged into temporary environment using ssh. And I got into dash shell. Please, make bash default shell of user "build"


==
Askar Safin
Details
Message ID
<CBNFYW0RZPT8.27IHH6V32YP1X@taiga>
In-Reply-To
<1622059050.562786273@f383.i.mail.ru> (view parent)
DKIM signature
fail
Download raw message
DKIM signature: fail
We use whichever shell is appropriate to the distribution you run your
build on. Take it up with Debian.

Re[2]: [builds.sr.ht] Make bash default shell on debian

Details
Message ID
<1622059614.979335544@f401.i.mail.ru>
In-Reply-To
<CBNFYW0RZPT8.27IHH6V32YP1X@taiga> (view parent)
DKIM signature
pass
Download raw message
> We use whichever shell is appropriate to the distribution you run your
> build on. Take it up with Debian.
Debian sets bash as default shell when installed normal way, i. e. using debian-installer. Also, when one creates users normal way (i. e. using "adduser" command), default shell is bash, too.

==
Askar Safin
http://safinaskar.com
https://sr.ht/~safinaskar
https://github.com/safinaskar
Details
Message ID
<5DBB188D-C872-41A1-A339-14B61D786D9B@gpanders.com>
In-Reply-To
<1622059614.979335544@f401.i.mail.ru> (view parent)
DKIM signature
pass
Download raw message
> On May 26, 2021, at 3:07 PM, Askar Safin <safinaskar@mail.ru> wrote:
> 
> 
>> 
>> We use whichever shell is appropriate to the distribution you run your
>> build on. Take it up with Debian.
> Debian sets bash as default shell when installed normal way, i. e. using debian-installer. Also, when one creates users normal way (i. e. using "adduser" command), default shell is bash, too.

If you’re writing a portable script (which you should be for build manifests) you shouldn’t be assuming that the shell is bash in any case, regardless of the distribution. If you need to use bash, run /bin/bash explicitly.

Re[2]: [builds.sr.ht] Make bash default shell on debian

Details
Message ID
<1622067483.95654028@f408.i.mail.ru>
In-Reply-To
<5DBB188D-C872-41A1-A339-14B61D786D9B@gpanders.com> (view parent)
DKIM signature
pass
Download raw message
> If you’re writing a portable script (which you should be for build manifests)
> you shouldn’t be assuming that the shell is bash in any case, regardless of
> the distribution. If you need to use bash, run /bin/bash explicitly.
My original mail was not about shell used to execute tasks. My mail is about shell I connect to when I type "ssh -t builds@azusa.runners.sr.ht connect ...". I want this shell to be bash, because this is convenient. And because bash is default login shell in debian (i. e. default shell for accounts created using "adduser")


==
Askar Safin
http://safinaskar.com
https://sr.ht/~safinaskar
https://github.com/safinaskar
Details
Message ID
<51a57268-ef5c-de26-2f9a-b0a5e723fe14@tomlebreux.com>
In-Reply-To
<1622067483.95654028@f408.i.mail.ru> (view parent)
DKIM signature
pass
Download raw message
On 2021-05-26 6:18 p.m., Askar Safin wrote:
>> If you’re writing a portable script (which you should be for build manifests)
>> you shouldn’t be assuming that the shell is bash in any case, regardless of
>> the distribution. If you need to use bash, run /bin/bash explicitly.
> My original mail was not about shell used to execute tasks. My mail is about shell I connect to when I type "ssh -t builds@azusa.runners.sr.ht connect ...". I want this shell to be bash, because this is convenient. And because bash is default login shell in debian (i. e. default shell for accounts created using "adduser")

Wouldn't it be simpler if the default shell when you `ssh -t 
builds@azusa.runners.sr.ht connect ...` was the same as the shell being 
used by the manifest though?

I would find it confusing if I would try commands in a debug ssh session 
and those would behave differently in the manifest.
Cara Salter
Details
Message ID
<9c547426-94dd-2425-141a-d04e8ce1476b@devcara.com>
In-Reply-To
<51a57268-ef5c-de26-2f9a-b0a5e723fe14@tomlebreux.com> (view parent)
DKIM signature
pass
Download raw message
On 2021-05-26 18:39, Tom Lebreux wrote:
> Wouldn't it be simpler if the default shell when you `ssh -t 
> builds@azusa.runners.sr.ht connect ...` was the same as the shell being 
> used by the manifest though?
> 
> I would find it confusing if I would try commands in a debug ssh session 
> and those would behave differently in the manifest.

I agree with this. The default shell when you SSH in should be the same 
shell as the one used to execute manifest steps.
Reply to thread Export thread (mbox)