Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A compatibility problem in sn_orchestrater.py #4

Open
dremofly opened this issue Aug 3, 2023 · 1 comment
Open

A compatibility problem in sn_orchestrater.py #4

dremofly opened this issue Aug 3, 2023 · 1 comment

Comments

@dremofly
Copy link

dremofly commented Aug 3, 2023

In line 61 of sn_orchestrator.py, the following command is presented:

            ".40 | head -n 1 | awk -F: '{ print $2 }' | tr -d [:blank:]") as f:

It is essential to note that the command tr -d [:blank:] failed to execute in my environment, which uses Ubuntu 20.04 with zsh as the default shell. Instead, I suggest using tr -d '[:blank:]' given its broader compatibility.

Note that this expression appears in many other locations.

@yangtaodeng
Copy link
Contributor

In line 61 of sn_orchestrator.py, the following command is presented:

            ".40 | head -n 1 | awk -F: '{ print $2 }' | tr -d [:blank:]") as f:

It is essential to note that the command tr -d [:blank:] failed to execute in my environment, which uses Ubuntu 20.04 with zsh as the default shell. Instead, I suggest using tr -d '[:blank:]' given its broader compatibility.

Note that this expression appears in many other locations.

Thank you for your suggestion. We will change it for later versions.

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

No branches or pull requests

2 participants