nushell / nufmt

MIT License
64 stars 7 forks source link

Bug with saving #5

Open u9g opened 1 year ago

u9g commented 1 year ago

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.

fdncred commented 1 year ago

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.