Re: Simplify the Linux commands

From: Sybren Stuvel (sybrenUSE_at_YOURthirdtower.imagination.com)
Date: 04/01/04


Date: 01 Apr 2004 07:32:06 GMT

Adam enlightened us with:
> I meant it's natural for the computer. Printing the filenames is just
> a matter of separating them by newlines.

Any data manipulation is natural for a computer.

> Perhaps more importantly, a program receiving as its input the output
> of another command can more naturally process it if one record of
> input is on one line of text.

Which is exactly what already happens! Do "ls | cat" and see what it
looks like.

> Since that format is necessary for piping output, it makes sense to
> have the same format for sending output to the screen, too.

It doesn't have that! If stdout is a terminal, the output is formatted
for a terminal. If stdout is not, it is displayed in one column.

You started this thread with a wish to simplify things - removing
unneeded options, rewriting cryptic ones, etc. so everything would be
easier to use. Now you suggest that people use a different command just
to format the output of 'ls' for the screen. People could put that
command into an alias, of course, but then they'd have to realize that
if they pipe the output through some other program, they'd have to take
the trouble to bypass the alias and use the original "ls" command again.
Why go through so much trouble, if the current "ls" does all of this
automagically for you?

> What I'm saying is that one column is better because it results in
> less total code, not because it looks nicer on the screen.

If less total code is always better, no matter what, then we wouldn't
have easy to use computers, would we? Before C, there were typeless
programming languages, where you had to interpret the bytes yourself. Of
course, directly working with bytes was very natural to the computer. It
wasn't a good thing, though. No everything that is "natural" to a
computer is immediately a good thing.

Sybren

-- 
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself? 


Relevant Pages

  • Re: Format Error (VB6 SP6)
    ... >> If you look up thread a few messages, I am looking for two hex digits ... >> no matter what the number is. ... Easy, Short, Simple and doesn't even use the format ... command. ...
    (microsoft.public.vb.bugs)
  • Export / backup problem : MAPI error, HELP!
    ... When I try to do the command (doen't matter what format I choose), ... error message appears: ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Export / backup problem : MAPI error, HELP!
    ... When I try to do the command (doen't matter what format I choose), ... error message appears: ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Where does fmtutil get its inputs?
    ... Here I first look into fmtutil.cnf to see that the 'latex' format ... uses the pdfetex engine. ... the command - thanks. ... been able to work out what texconfig does exactly, ...
    (comp.text.tex)
  • when section heading at top of page, top margin wrong!
    ... For a thesis, my university requires a top margin of 1" throughout, ... % and format the table of contents. ... \doublespacing % command from setspace package to invoke double ... reduce vertical space by 7pt. ...
    (comp.text.tex)