Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

The less time planning, the more time programming.


computers / alt.os.linux / Re: bash - executing "history" commands - inconsistent results

SubjectAuthor
* bash - executing "history" commands - inconsistent resultsR.Wieser
`* bash - executing "history" commands - inconsistent resultsDan Purgert
 `* bash - executing "history" commands - inconsistent resultsR.Wieser
  +* bash - executing "history" commands - inconsistent resultsDan Purgert
  |+* bash - executing "history" commands - inconsistent resultsCarlos E.R.
  ||+- bash - executing "history" commands - inconsistent resultsDan Purgert
  ||`* bash - executing "history" commands - inconsistent resultsR.Wieser
  || `* bash - executing "history" commands - inconsistent resultsR.Wieser
  ||  `* bash - executing "history" commands - inconsistent resultsCarlos E.R.
  ||   `* bash - executing "history" commands - inconsistent resultsR.Wieser
  ||    `- bash - executing "history" commands - inconsistent resultsCarlos E.R.
  |+- bash - executing "history" commands - inconsistent resultsR.Wieser
  |`- bash - executing "history" commands - inconsistent resultsR.Wieser
  `* bash - executing "history" commands - inconsistent resultsCarlos E.R.
   `* bash - executing "history" commands - inconsistent resultsRonB
    +* bash - executing "history" commands - inconsistent resultsChris Elvidge
    |+- bash - executing "history" commands - inconsistent resultsRonB
    |`* bash - executing "history" commands - inconsistent resultsPeter 'Shaggy' Haywood
    | `- bash - executing "history" commands - inconsistent resultsRonB
    +- bash - executing "history" commands - inconsistent resultsChris Elvidge
    +* bash - executing "history" commands - inconsistent resultsCarlos E.R.
    |`- bash - executing "history" commands - inconsistent resultsRonB
    +* bash - executing "history" commands - inconsistent resultsR.Wieser
    |`* bash - executing "history" commands - inconsistent resultsRonB
    | `* bash - executing "history" commands - inconsistent resultsR.Wieser
    |  `- bash - executing "history" commands - inconsistent resultsRonB
    `* bash - executing "history" commands - inconsistent resultsDan Purgert
     `- bash - executing "history" commands - inconsistent resultsR.Wieser

Pages:12
Re: bash - executing "history" commands - inconsistent results

<u2tgdg$18tct$2@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=3051&group=alt.os.linux#3051

  copy link   Newsgroups: alt.os.linux
Path: i2pn2.org!rocksolid2!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: alt.os.linux
Subject: Re: bash - executing "history" commands - inconsistent results
Date: Wed, 3 May 2023 13:16:00 +0200
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <u2tgdg$18tct$2@dont-email.me>
References: <u2t5re$17b4u$1@dont-email.me> <slrnu54ams.t5.dan@djph.net> <u2tboj$1875h$1@dont-email.me> <slrnu54du4.t5.dan@djph.net> <gaq9ijx49l.ln2@Telcontar.valinor>
Injection-Date: Wed, 3 May 2023 11:26:40 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="3cfebaed5868f6c645690b73481d0c87";
logging-data="1340829"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/U9mUr31Q1iXr3TCJA7KcG0cAD85pVWtwdZs3jAvwI9g=="
Cancel-Lock: sha1:o7nEL9e6AtMNy0DfstvTat0lEIs=
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-Priority: 3
X-MSMail-Priority: Normal
 by: R.Wieser - Wed, 3 May 2023 11:16 UTC

Carlos,

> I think he is sourcing a script that contains functions, and then calling
> the functions from that bash session.

Yep.

> But the function was named "cleanist()", then he calls "cleanhist".

The first is its declaration, the second how its called.

Use "declare -F" to get a list of predefined functions, and than "declare -f
{function name}" to view its code.

Regards,
Rudy Wieser

Re: bash - executing "history" commands - inconsistent results

<u2tgdg$18tct$3@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=3052&group=alt.os.linux#3052

  copy link   Newsgroups: alt.os.linux
Path: i2pn2.org!rocksolid2!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: alt.os.linux
Subject: Re: bash - executing "history" commands - inconsistent results
Date: Wed, 3 May 2023 13:26:24 +0200
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <u2tgdg$18tct$3@dont-email.me>
References: <u2t5re$17b4u$1@dont-email.me> <slrnu54ams.t5.dan@djph.net> <u2tboj$1875h$1@dont-email.me> <slrnu54du4.t5.dan@djph.net>
Injection-Date: Wed, 3 May 2023 11:26:41 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="3cfebaed5868f6c645690b73481d0c87";
logging-data="1340829"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+hXXLz7chUWijBhW3f/rGEGbvoM7baL0zy+r7UWUVBow=="
Cancel-Lock: sha1:2VY953es29Y4Bw/h++C33jNjX5E=
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
 by: R.Wieser - Wed, 3 May 2023 11:26 UTC

Dan,

I forgot to answer the below :

> Do you REALLY mean to say that running the script directly
> from the prompt works, and sourcing it does not?

Whut ? No.

I said that when I call it "sourced" directly it works. When I call it
*indirectly* ("sourcing" a function containing the same code and than
calling the function) it does not - or more precisely : it partially works.

Regards,
Rudy Wieser

Re: bash - executing "history" commands - inconsistent results

<u2u0dh$1bdda$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=3053&group=alt.os.linux#3053

  copy link   Newsgroups: alt.os.linux
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: alt.os.linux
Subject: Re: bash - executing "history" commands - inconsistent results
Date: Wed, 3 May 2023 17:59:33 +0200
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <u2u0dh$1bdda$1@dont-email.me>
References: <u2t5re$17b4u$1@dont-email.me> <slrnu54ams.t5.dan@djph.net> <u2tboj$1875h$1@dont-email.me> <slrnu54du4.t5.dan@djph.net> <gaq9ijx49l.ln2@Telcontar.valinor> <u2tgdg$18tct$2@dont-email.me>
Injection-Date: Wed, 3 May 2023 15:59:45 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="3cfebaed5868f6c645690b73481d0c87";
logging-data="1422762"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19iDKlgvCmM4GX0wP7faux3t2cXplVy+4T2Bh8VSwUQXg=="
Cancel-Lock: sha1:bgwNANj8Q1QYYOiTH4imsteisvI=
X-MSMail-Priority: Normal
X-RFC2646: Format=Flowed; Response
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
 by: R.Wieser - Wed, 3 May 2023 15:59 UTC

Carlos,

>> But the function was named "cleanist()", then he calls "cleanhist".
>
> The first is its declaration, the second how its called.

I only just now noticed the typo, that the first one misses a "h". sorry.

Regards,
Rudy Wieser

Pages:12
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor