这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@kfatyuip
Copy link
Contributor

ash is unavailable on termux.
According to login.in, it should be sh.

ash is unavailable on termux.
According to login.in, it should be sh.
@2096779623
Copy link
Member

Why not dash or bash ?

@kfatyuip
Copy link
Contributor Author

kfatyuip commented Aug 12, 2022

Because bash can not be the default shell when it is not executable.

sh is a soft link of dash on termux, I read the code of login.in, it uses sh instead of dash.

@truboxl
Copy link
Contributor

truboxl commented Aug 12, 2022

Fair enough, this was added way long ago in 80905a2

ash probably still exist at that time https://android.googlesource.com/platform/system/core/+/master/shell_and_utilities/README.md

@kfatyuip
Copy link
Contributor Author

kfatyuip commented Aug 12, 2022

.../usr/bin $ chmod -x bash
.../usr/bin $ chsh
Changing the login shell
Enter the new value, or press ENTER for the default
        Login Shell [ash]:
/data/data/com.termux/files/usr/bin/ash is not an executable file!
.../usr/bin $

But it probably not exist now

@thunder-coding
Copy link
Member

Why not dash or bash ?

sh is just symbolic link to dash.

Also it looks for bash if available if you look in the line before it :)

@thunder-coding thunder-coding merged commit ce8f6f4 into termux:main Aug 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants