Closed DanYamamotoEvans closed 1 year ago
Hi there!
Actually, this is not a typo. The WSL allows to use wc --m
as a "shortcut" to wc --max-line-length
, which is equivalent to wc -L
. You do not want to run wc -m
, it counts the new line character (\n
). E.g.,
printf "asdfg\n" | wc -L # 5
printf "asdfg\n" | wc -m # 6
To avoid possible problems with other platforms not supporting wc --m
, I will update the README.md
file so it includes wc -L
instead.
This comment is now closed, thanks for letting us know!
Hi, Thank you for looking into it! I had no idea about the shortcut in WSL. Thank you for correcting my error as well.
There is a typo for "wc --m", giving an error "wc: illegal option -- -".