Skip to content

Updated README with Shell Notes #126

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,24 @@ BB3 is made up of the following components:
* [Crowd supply](https://www.crowdsupply.com/envox/eez-bb3) (kit only, excl. EU)
---
Please note that some previous board types and revisions that could be still usable in some cases can be found under *[previous design](https://github.com/eez-open/modular-psu/tree/master/previous%20designs)* folder.

### Notes on Shell Syntax (Community Feedback)
In shell scripting, the syntax used for loops can impact portability and readability across different environments.
Potential Issue with Braces:

while (( i++ < 10 )) { echo i is $i }

may not work reliably in all shell environments. For instance, in Zsh, this syntax will fail unless SHORT_LOOPS is explicitly enabled.
It can also cause issues with syntax highlighting and script execution.

* Alternate Approach: To ensure broader compatibility and clearer syntax, prefer the standard do ... done block structure:

i=0
while (( i++ < 10 ))
do
echo "i is $i"
done

This format is - Compatible with most POSIX-compliant shells (e.g., Bash, Zsh, etc.) and Syntax-highlight friendly in editors and IDEs.