Output samples #166

Open
rgaiacs opened this Issue May 28, 2015 · 4 comments

Projects

None yet

4 participants

@rgaiacs
Collaborator
rgaiacs commented May 28, 2015

At 01-filedir.md we have

$ ls -F
creatures/  molecules/           pizza.cfg
data/       north-pacific-gyre/  solar.pdf
Desktop/    notes.txt            writing/

where the output is alphabetic sorted by columns and

$ ls -F data
amino-acids.txt   elements/     morse.txt
pdb/              planets.txt   sunspot.txt

where the output is alphabetic sorted by lines.

This is bugging me.

I previous suggested to implicit use flag -1, see #131. I'm OK to not use it but could we agree in how to sort ls output and the numbers of maximum of columns?

@wking I was trying to use shopt to unset checkwinsize and fix the number of columns but didn't work. Any advice?

@ChristinaLK
Contributor

I think we should just make our lesson output the same as what you would see on a bash window (which is alphabetically by columns, yes?).

@ChristinaLK ChristinaLK modified the milestone: Version 5.4 Jun 14, 2015
@rgaiacs
Collaborator
rgaiacs commented Jun 14, 2015

I think we should just make our lesson output the same as what you would see on a bash window (which is alphabetically by columns, yes?).

@ChristinaLK I'm OK with your decision here as long as the output samples are compatible and we mention it in our documentation. =)

@gdevenyi
Contributor

I think the issues we may be running into here and that different users will be on differ operating systems, with different default "ls" invocations hidden within their default .bashrc.

No matter what we decide on, it will not always be consistent with the learners, unfortunately.

@gdevenyi gdevenyi was assigned by gvwilson Jul 31, 2016
@shwina
Member
shwina commented Aug 7, 2016

Unfortunately, we can't be sure of what learners will see when they type in "ls". How about adding a note that:

"Depending on your operating system and configuration, the output of ls may be sorted alphabetically, by size, or some other parameter". (?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment