Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.os.linux > #59921

Re: Bash topics (Memory Usage)

From Aragorn <thorongil@telenet.be>
Newsgroups alt.os.linux
Subject Re: Bash topics (Memory Usage)
Date 2019-10-20 12:33 +0200
Organization A noiseless patient Strider
Message-ID <20191020123354.2b916e90@nx-74205> (permalink)
References <qoej8c$9r5$1@dont-email.me> <slrnqqm341.1ug.dan@djph.net> <20191019154440.4aa6d7f3@nx-74205> <qog5es$rvj$1@dont-email.me>

Show all headers | View raw


On 20.10.2019 at 01:15, Soviet_Mario scribbled:

> with MACRO language I was trying to mean the semantic 
> fluidity created by (multiple) substitution of text, which 
> becomes executable.

By that definition, even assembler is a macro language.  Hell, even the
x86 instruction set would qualify as a macro language, because the x86
architecture is a CISC processor, and its instructions are macros of
opcode.

> Also it seems to my first vague impressions that, contrary to many
> strict languages, BASH could support code "injection" generating text
> that later is interpreted as a native command.

Every programming language — barring perhaps assembler, because I don't
remember whether it allowed for that — can do that.

> > [*] Mario: There's more than just GNU Bash, and even Bash has a
> >            strict POSIX mode.  FreeBSD does not use GNU Bash by
> >            default, and neither does Solaris (which uses a Korn
> >            Shell instead). macOS has up until now used Bash, but I
> >            believe the latest iteration uses zsh now.  And then
> >            there's the C Shell. All of these shells are different.
> > 
> >            Bash and other UNIX shells are to UNIX what COMMAND.COM
> >            was to MS-DOS, and what CMD.EXE is to the NT-based
> >            Windows versions (and to OS/2 before it).  It is simply a
> >            command- line user interface.  
> 
> but much more powerful.

Why, yes, of course, but this ties in with the greater functionality
and power of the underlying operating system as well.  UNIX is a
multiuser architecture, whereas DOS wasn't even multitasking.

> Now I don't know of modern "power shell" (a definition that seems
> rather bloating), [...

PowerShell is an object-oriented shell, whereas POSIX shells are
byte-stream oriented.

> ...] but 10 y ago the native batch files to be parsed by command.com
> were not as powerful and flexible as bash script.

Of course.  See higher up.  DOS was a single-tasking environment and a
much simpler operating system in every respect.

> VBS had been an attempt to create a better tool, but then I 
> did not deepen into the argument.

OS/2 had ReXX, an interpreted language that was also used in OS/400.
It was a lot more powerful than the "DOS legacy" language.  Its syntax
was rather elegant too — it reminded me of Pascal and C, albeit that I
don't really know C.

-- 
With respect,
= Aragorn =

Back to alt.os.linux | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Bash topics (Memory Usage) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-19 10:58 +0200
  Re: Bash topics (Memory Usage) Dan Purgert <dan@djph.net> - 2019-10-19 13:15 +0000
    Re: Bash topics (Memory Usage) Aragorn <thorongil@telenet.be> - 2019-10-19 15:44 +0200
      Re: Bash topics (Memory Usage) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-20 01:15 +0200
        Re: Bash topics (Memory Usage) Dan Purgert <dan@djph.net> - 2019-10-19 23:25 +0000
        Re: Bash topics (Memory Usage) Aragorn <thorongil@telenet.be> - 2019-10-20 12:33 +0200
          Re: Bash topics (Memory Usage) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-20 13:39 +0200
            Re: Bash topics (Memory Usage) Aragorn <thorongil@telenet.be> - 2019-10-20 16:19 +0200
              Re: Bash topics (Memory Usage) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-20 21:08 +0200
                Re: Bash topics (Memory Usage) Aragorn <thorongil@telenet.be> - 2019-10-20 21:51 +0200
                Re: Bash topics (Memory Usage) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-20 22:12 +0200
    Re: Bash topics (Memory Usage) John Hasler <jhasler@newsguy.com> - 2019-10-19 12:33 -0500
  Re: Bash topics (Memory Usage) William Unruh <unruh@invalid.ca> - 2019-10-19 21:26 +0000
    Linux users who buttfuck the president... Idaho Homo Joe <dick_lick@aol.com> - 2019-10-19 21:47 -0400
    Re: Bash topics (Memory Usage) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-20 15:19 +0200
      Re: Bash topics (Memory Usage) Dan Purgert <dan@djph.net> - 2019-10-20 13:54 +0000
      Re: Bash topics (Memory Usage) Richard Kettlewell <invalid@invalid.invalid> - 2019-10-20 15:29 +0100
        Re: Bash topics (Memory Usage) William Unruh <unruh@invalid.ca> - 2019-10-20 19:24 +0000
          Re: Bash topics (Memory Usage) Richard Kettlewell <invalid@invalid.invalid> - 2019-10-21 10:28 +0100
      Re: Bash topics (Memory Usage) Chris <ithinkiam@gmail.com> - 2019-10-20 15:36 +0100
      Re: Bash topics (Memory Usage) Paul <nospam@needed.invalid> - 2019-10-20 11:05 -0400
        Re: Bash topics (Memory Usage) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-20 23:14 +0200
          Re: Bash topics (Memory Usage) John Hasler <jhasler@newsguy.com> - 2019-10-20 18:01 -0500
            Re: Bash topics (Memory Usage) Paul <nospam@needed.invalid> - 2019-10-20 22:03 -0400

csiph-web