~ commands not working in a for loop
See original GitHub issueThe following example
#!/usr/bin/env zxpy
def main():
~'/bin/echo "This works fine"'
for u in [1, 2]:
print(u)
~'/bin/echo "Not working"'
if __name__ == '__main__':
main()
gives as output only:
This works fine
1
2
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Why does FOR loop command not work in a batch file which ...
The problem is with % , %A is for use on command lines only. when used in batch files %A should be substituted...
Read more >Batch FOR loop not working - Super User
I fail to see what's incorrect in my batch code: FOR /R %a in (*.png) DO ( files\pngnq -s 1 -n 16 %~fa...
Read more >Find command not working in for loop - Unix Stack Exchange
I have use the for loop and take all filename in variable using cat command, Then pass them to find command through variable...
Read more >For - Looping commands - Windows CMD - SS64.com
Using variables within a FOR loop. Variables are expanded at the start of a FOR loop and don't update until the entire DO...
Read more >PREVENTING ERRORS & DEBUGGING LOOPS IN STATA
Below I present three exercises aimed at accomplishing different data management tasks. Each exercise uses a loop (or loops) that contain an error....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I tested it. Looks good now. Thanks a lot.
BTW, every release - all the way back - has patch notes mentioning what was fixed. Like the current one: https://github.com/tusharsadhwani/zxpy/releases/tag/1.4.4