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

Any script with a 'for' loop doesn't produce any output #478

Open
asgharam opened this issue Oct 6, 2023 · 0 comments
Open

Any script with a 'for' loop doesn't produce any output #478

asgharam opened this issue Oct 6, 2023 · 0 comments

Comments

@asgharam
Copy link

asgharam commented Oct 6, 2023

I wrote a bash script but i3blocks wouldn't show the output of the script at all. after hours of tinkering this and that, I found out any bash script that had a 'for' loop wouldn't work in i3blocks. Like a script with the content bellow wouldn't show any output on the bar:

#!/bin/bash
for ((i=0; i<100; i++)); do echo $i; sleep 1; done

The interval for the script block in i3blocks's config is set to 1.
What is the problem?

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

1 participant