Deutsch English Français Italiano |
<uudrcl$2cs2i$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Muttley@dastardlyhq.com Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc Subject: Re: Command Languages Versus Programming Languages Date: Mon, 1 Apr 2024 08:31:17 -0000 (UTC) Organization: A noiseless patient Spider Lines: 42 Message-ID: <uudrcl$2cs2i$1@dont-email.me> References: <uu54la$3su5b$6@dont-email.me> <uu636l$7haj$1@dont-email.me> <wwv34s92rn0.fsf@LkoBDZeT.terraraq.uk> <uu6akq$9dc6$1@dont-email.me> <20240329095607.314@kylheku.com> <uu6t4v$dob8$1@dont-email.me> <20240329102026.442@kylheku.com> <uu8oq1$udf8$1@dont-email.me> <20240330110335.775@kylheku.com> Injection-Date: Mon, 01 Apr 2024 08:31:18 +0200 (CEST) Injection-Info: dont-email.me; posting-host="9637a353974343ad91e9a40c3e22173d"; logging-data="2519122"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX198tN8xkRALEddbe//oNBFy" Cancel-Lock: sha1:DMAQFdFEoOSupSrWnez/UNxiy3A= Bytes: 2420 On Sat, 30 Mar 2024 18:10:36 -0000 (UTC) Kaz Kylheku <643-408-1753@kylheku.com> wrote: >On 2024-03-30, Muttley@dastardlyhq.com <Muttley@dastardlyhq.com> wrote: >>>I also wrote: "Scripting refers to executing commands which are so high >>>level that they are entire applications or functional blocks within an >>>application." >> >> So if I write: >> >> int main() >> { >> system("ls | wc -l"); >> return 0; >> } >> >> Thats a script? > >The "ls | wc -l" part is a script, passed off for execution to a >language that mainly supports scripting. So its not a script. >Note the non-scripting features here like "int main", >which doesn't /do/ anything, and typically the need to compile >and link this in order to run it. There may be plenty of surrounding code that does do something. >> No? What if I use popen() or execve() then? Where do you >> draw the line? > >If you use popen and execve, you're using more systems programming >functional blocks that are not scripting commands. They both call high level commands so is it scripting or programming? >> I'm not being obtuse. There is no hard dividing line between scripts and > >Right now you're doubling down on obtusity, by my estimate. Perhaps you don't understand what being obtuse actually means.