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


Groups > alt.os.linux > #59913

Re: Bash topics (Memory Usage)

From Dan Purgert <dan@djph.net>
Newsgroups alt.os.linux
Subject Re: Bash topics (Memory Usage)
Date 2019-10-19 23:25 +0000
Organization A noiseless patient Spider
Message-ID <slrnqqn6ro.1ug.dan@djph.net> (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


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Soviet_Mario wrote:
> On 19/10/2019 15:44, Aragorn wrote:
>> On 19.10.2019 at 13:15, Dan Purgert scribbled:
>> 
>>> Soviet_Mario wrote:
>>>> The origin of my confusion is that it resembles more the
>>>> MACRO / Preprocessor usage than the plain synthax.
>>>>
>>>> Is then a MACRO language to a certain degree ?
>>>
>>> If I'm understanding what you're trying to ask; "maybe".  But I'm not
>>> really sure what you mean by "macro language".
>
> with MACRO language I was trying to mean the semantic 
> fluidity created by (multiple) substitution of text, which 
> becomes executable. 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.

You're still not really making sense; but if you mean "can I store a
command in a variable and execute it later?", yes, you can.

For example:
  $> command="ls -l"
  $> $command
  drwxr-xr-x 6 tdd tdd 4096 Sep 25 13:18 .
  drwxr-xr-x 4 tdd tdd 4096 Oct  3 10:00 ..
  drwxr-xr-x 6 tdd tdd 4096 Sep 23 11:44 build
  [...]
  $> 
  

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEBcqaUD8uEzVNxUrujhHd8xJ5ooEFAl2rm3gACgkQjhHd8xJ5
ooEscQf+MUYS9a01ZcBcLog5xEYUKeEqUQ4Vh8OC138s16y2Exp9OWVeEWSJQy4f
DlQ60S3+VpYXENKnYSAv/g3XQCevEsfo1bXbzLqkOPJclw2WfgZwmKG0NdjJTrJ+
Uwrjs6nKK2gvwcREVTHUczLzbel3eJb7s8ptfoAJC7vFhoushg5nLUiq+RgtwtB7
Pra3Pq9J7Fz2djRzcPGLvU97bAPqjzRkb5qn8GL3MuTZpAVAO0OkgOsbtK2mUkGk
94gCZUrurBeIflkcft7/Cph45tXEyIFO2rjJOOdb3a2yZCGhWGzBUKrAb7vDvBW1
pLbhLMzgZgtANcs9+vnvc33PqiCnTg==
=mqiw
-----END PGP SIGNATURE-----

-- 
|_|O|_| 
|_|_|O| Github: https://github.com/dpurgert
|O|O|O| PGP: 05CA 9A50 3F2E 1335 4DC5  4AEE 8E11 DDF3 1279 A281

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