ish-app / ish

Linux shell for iOS
https://ish.app
Other
16.77k stars 879 forks source link

Bash prompt, bash alias not working #2061

Closed treatmesubj closed 1 year ago

treatmesubj commented 1 year ago

I prefer Bash, so for root user, in /etc/passwd I have

root:x:0:0:root/root:/bin/bash

I have file /root/.bashrc_john.sh with below contents

alias list='ls -a -h -s -1 --color'

I have file /root/.bash_profile with below contents

source /root/.bashrc_john.sh

When I try list I get

ls: unrecognized option: color
BusyBox...

Usage: ls [...]

List directory contents
...

ls -a -h -s -1 --color on its own runs just fine and all the parameters are valid for BusyBox ls

treatmesubj commented 1 year ago

/root/.bashrc_john.sh had \r DOS carriage returns, which was causing things to act up