espressif/rust-esp32-example

rust-xtensa instructions for Ubuntu 20 doesn't works on zsh

pmnxis opened this issue · 6 comments

Related files : docs/rust-on-xtensa-installation-x86_64-unknown-linux-gnu.md
Description :

zsh: command not found: pushd
zsh: command not found: popd

Suggest to change pushd and popd to cd somepath , cd ..

seems some ubuntu works but others not work.
Don't know exact reason :(, But I think cd should work.

@pmnxis Thank you for reporting the issue.
That's really interesting. Just from curiosity, which version of zsh do you have?
Type: zsh --version
I was testing Ubuntu 20 zsh 5.8 (x86_64-ubuntu-linux-gnu) and it was working fine.

I'll check whether we can run the Rust installation scripts even without push/pop/cd commands to simplify the manual.

@pmnxis I've made test with Rust installer and it's not necessary to change into the directory with the package.
Here's updated manual which also contains new LLVM with clang: #15
Please check the manual from this branch: https://github.com/espressif/rust-esp32-example/blob/feature/llvm-toolchain/docs/rust-on-xtensa-installation-x86_64-unknown-linux-gnu.md

@georgik it was version 5.7. After do sudo apt upgrade -y, I can use pushd and popd very well with latest version 5.8.
Also I checked the new script, looks fine :)

Thank you for the feedback.

Solved by #15 which contains instructions to new version without popd/pushd