nufmt icon indicating copy to clipboard operation
nufmt copied to clipboard

Bug with saving

Open u9g opened this issue 2 years ago • 1 comments

Hi, very weird bug here. Saving the output with nufmt ./a.nu | save -f a.nu results in an empty file, but nufmt ./a.nu | lines | str join "\n" | save -f ./a.nu works fine for some reason.

u9g avatar Mar 21 '23 06:03 u9g

makes sense to me. this is how nushell handles raw streams of text. also, nufmt isn't anywhere near close to working, as you've probaby seen. we're looking for contributors to make it work right. feel free to jump in.

fdncred avatar Mar 21 '23 12:03 fdncred