Open dirtslayer opened 1 month ago
I had exported an email file, the filename was 57 characters but I was using a large font terminal only half the width of my screen and ls crashed my shell. I discovered it had nothing to do with the files, and that if I made my terminal large enough that the filename fit on one row, it would not crash. The script here is contrived to show it had nothing to do with my file, but rather its name length and having the emoji character.
Can you provide the error message for the crash and which table configuration you are using (if you diverge from the default there)
There is a tabled
fix that isn't merged yet that handles unicode/emoji better. Can you try with this PR to see if the behavior is better? https://github.com/nushell/nushell/pull/13430
Describe the bug
The terminal window has to be sufficiently narrow to force the table command output to split a string into multiline for this crash to occur. The string must also contain a unicode character like 🖨️.
20..200 | each { let w = $in; "🖨️" | fill --character '-' --width $w | print }
this command prints a list of strings that contain 1 🖨️ that are increased in length, they are not sent to the table command here because of the | print, but, if you remove the | print
20..200 | each { let w = $in; "🖨️" | fill --character '-' --width $w }
a crash occurs
How to reproduce
20..200 | each { let w = $in; "🖨️" | fill --character '-' --width $w }
Expected behavior
not crash and print the strings
Screenshots
No response
Configuration
Additional context
No response