c0defellas / enzo

core utilities
11 stars 2 forks source link

missing ls #3

Closed i4ki closed 7 years ago

lborguetti commented 7 years ago

Guys, what common parameters you use with "ls" program?

katcipis commented 7 years ago

-l (to list by line) -h (human, because well...Im human :-)

i4ki commented 7 years ago

same here.

but, -h only makes sense with -l and is only used to print human-readable sizes (1k, 1M, 1G, etc) ... then maybe we can default the -l to "human".. Then, our ls -l could output files by line printing human-readable sizes.

The most useful feature of ls must be being sane and safe for scripts... ls without arguments must output files/dirs separated by spaces and quote filenames containing spaces.

λ> touch "filename with spaces"
λ> ls
build-image.sh  dev.json  dev.sh  Dockerfile  'filename with spaces'  Makefile  README.md  tmp
katcipis commented 7 years ago

makes sense for me, I have no use for sizes in bytes when I'm using ls

lborguetti commented 7 years ago

@katcipis don't use size in bytes to do math training? nhaa!

katcipis commented 7 years ago

I'm terrible with math :-(

i4ki commented 7 years ago

must show hidden files by default

we can add an option (-n ?) to not show hidden files..

katcipis commented 7 years ago

I'm not sure if I like hidden files to not show, would do it later only if necessary

i4ki commented 7 years ago

Agreed. It's good to always see the hidden garbage..

Then the only parameter required is "-l" ?

@cadicallegari

i4ki commented 7 years ago

Closed by #19