sharkdp / shell-functools

Functional programming tools for the shell
MIT License
1.19k stars 49 forks source link

Issues with filename consist of only numbers like '123' #42

Closed tddschn closed 3 years ago

tddschn commented 3 years ago

For example, a string like '123' is interpreted as a Int by map, even if it's also a Path:

$ touch 123
$ ls
123
$ ls | map filesize
[functools error] Incompatible input type: expected 'Path', got 'Int'
sharkdp commented 3 years ago

Please see #19 and #37.