-
|
With the same arguments given, output differs between 3.12.0 and 3.13.0, as demonstrated in the example below. I didn't see this mentioned directly in the release notes, so I was wondering if this is an intentional change or a bug. I don't mind the change per se, but just wanted to be sure that it's permanent before I adjust all my existing scripts to conform to the newer way shfmt prefers this. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
I noticed that for the specific case of picking an element from the end using just the size of the array itself, the above is a somewhat contrived example; a plain -1 would work just as well. But I can change the example script as below, and the difference between outputs still holds: |
Beta Was this translation helpful? Give feedback.
-
see #1314 |
Beta Was this translation helpful? Give feedback.
Apologies that I missed this, @uusijani. Someone else reported the same and it's already fixed at master, as the change in formatting was unintentional as part of the Zsh work. I'll release v3.13.1 shortly with the revert.