You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but shfmt insists on formatting it into a long line making it hard to work with the array-like string. I see disabling formatting is not supported, so surely there is a way to at least prevent it being formatted to a long line. I guess one can break it up to a numerous concatenations str+=${str}abc but that doesn't seem ideal where formatting for readability in this manner technically requires changing how the code is parsed...
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
What is recommended to break this long line? Currently I have:
but
shfmt
insists on formatting it into a long line making it hard to work with the array-like string. I see disabling formatting is not supported, so surely there is a way to at least prevent it being formatted to a long line. I guess one can break it up to a numerous concatenationsstr+=${str}abc
but that doesn't seem ideal where formatting for readability in this manner technically requires changing how the code is parsed...Beta Was this translation helpful? Give feedback.
All reactions