Re: Case Insensitive File Systems -- Torvalds Hates Them

Liste des GroupesRevenir à col misc 
Sujet : Re: Case Insensitive File Systems -- Torvalds Hates Them
De : tnp (at) *nospam* invalid.invalid (The Natural Philosopher)
Groupes : comp.os.linux.misc
Date : 07. May 2025, 11:07:04
Autres entêtes
Organisation : A little, after lunch
Message-ID : <vvfbc8$usml$2@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14
User-Agent : Mozilla Thunderbird
On 06/05/2025 23:27, Rich wrote:
The Natural Philosopher <tnp@invalid.invalid> wrote:
On 04/05/2025 14:41, Richard Kettlewell wrote:
I mean you can trace the transmission of the command line from parent to
child process through the startup. There’s no splitting in there, it’s
an array of strings from top to bottom.
>
But the command line is not an array of strings... any more than this
line of text is. That's what I don't understand. It's a single string
 The shell (bash/csh/tcsh/ksh/ash/etc.) reads a line of text from you
when you type it in and press return/enter.
 
The splitting on spaces (and handling of quotes etc) happens in the
shell.
>
An array by definition is already split. On what basis is it split?
 The shell performs the "splitting" from a "line of text" into
individual strings.
 All of the kernel, C the language, and libc the library routines
handles the "command line" values as an array of strings.
 The shell that reads in that line from you is what splits it up to make
it compatible with the kernel/C/libc interface.
 Or, said another way, the shell (bash/csh/etc) is the "translator" from
"single line of text" into "array of strings" that the rest of the
interface expects to receive.
Thanks. I had finally figured out that without the shell there *is* no command line.
My geriatric brain was thinking 'you dont need shell to invoke a program' But of course then you need exec and friends all of which send arrays as arguments
--
Of what good are dead warriors? … Warriors are those who desire battle more than peace. Those who seek battle despite peace. Those who thump their spears on the ground and talk of honor. Those who leap high the battle dance and dream of glory … The good of dead warriors, Mother, is that they are dead.
Sheri S Tepper: The Awakeners.

Date Sujet#  Auteur
2 Nov 25 o 

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal