Closed dontknowhy closed 1 year ago
That is due to shell scripting gotcha, see for example https://github.com/koalaman/shellcheck/wiki/SC2089
That is due to shell scripting gotcha, see for example https://github.com/koalaman/shellcheck/wiki/SC2089
The real problem is $(uname -v)
It will output:#1 SMP PREEMPT Thu Aug 4 21:24:09 CST 2022
And PRoot will think the SMP is a program and PREEEMPT… is the program's arg.
Now i replace $(uname -a) with WHAT:
That is due to shell scripting gotcha, see for example https://github.com/koalaman/shellcheck/wiki/SC2089
The real problem is $(uname -v) It will output:#1 SMP PREEMPT Thu Aug 4 21:24:09 CST 2022 And PRoot will think the SMP is a program and PREEEMPT… is the program's arg. Now i replace $(uname -a) with WHAT:
umm…
i think i resolve it…
That is due to shell scripting gotcha, see for example https://github.com/koalaman/shellcheck/wiki/SC2089
The real problem is $(uname -v) It will output:#1 SMP PREEMPT Thu Aug 4 21:24:09 CST 2022 And PRoot will think the SMP is a program and PREEEMPT… is the program's arg. Now i replace $(uname -a) with WHAT:
umm… i think i resolve it…
umm…
nope
Once i run mv debian-test debian-backup
And this line doesn't work anymore
(you can see the hostname isn't your-hostname)
This is because this parameter wasn't even passed to proot
Seems that passing multiple arguments where some contains spaces through variable is difficult in base, inline proot
invocation and -k "..."
argument away from variable into exec
line
This is because this parameter wasn't even passed to proot
Seems that passing multiple arguments where some contains spaces through variable is difficult in base, inline
proot
invocation and-k "..."
argument away from variable intoexec
line
So i changed the last line to:$proot -k\ "\Linux\dontknow-pad\5.19.2-aarch64\$(uname -v)\aarch64\localdomain\-1\" $command /usr/bin/login $@ PS:$proot=$PREFIX/bin/proot
Problem description
umm.I saw #80 and i wanted to change my 'localhost' host name. BUT i can't use the command to run my container. aughhhhhh ( ) Steps to reproduce
neofetch(dontknowhy/neofetch):
Additional information