Re:But no, 80-column terminals in 2020 isn't “reasonable” an...
by moonchild on Saturday May 30, 2020 @12:47AM
(#23358551)
Then pipe through
Before grepping
[ Parent
| on HN ]
Re:But no, 80-column terminals in 2020 isn't “reasonable” an...
by wool_gather on Saturday May 30, 2020 @12:49PM
(#23362486)
Turning the entire file into a single line really doesn't seem like a solution. Now
foo(1, bar, false)
print("Hello, world")
flag = true
shows up in your grep output, and not in a particularly helpful rendering.
Re:But no, 80-column terminals in 2020 isn't “reasonable” an...
by moonchild on Saturday May 30, 2020 @02:52PM
(#23363596)
No? That just merges continuation lines. So if your original file is
foo(1, \
bar, \
false)
print("Hello, world")
flag = \
true
Then the postprocessed output is: foo(1, bar, false)
print("Hello, world")
flag = true
And your grep output is just foo(1, bar, false)
Re:But no, 80-column terminals in 2020 isn't “reasonable” an...
by wool_gather on Saturday May 30, 2020 @07:10PM
(#23365660)
Sorry, what language are we talking about that has escaped line continuations for expressions like that?