public inbox for goredo-devel@lists.cypherpunks.ru
Atom feed
From: Norman Kabir <nkabir@gmail•com>
To: goredo-devel@lists.cypherpunks.ru
Subject: Re: GoRedo shell specification?
Date: Fri, 26 Feb 2021 14:15:41 -0600 [thread overview]
Message-ID: <CAHJSYiS74PdtZCbH=mTKAa7nPdKvmCmwLooHJXQMkA+-kQMsgA@mail.gmail.com> (raw)
In-Reply-To: <CAHJSYiRsGcogbfiP5pt=CMex9e9ZngNsjbzzpC+aUQWkYTBWew@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 729 bytes --]
I figured it out--the behavior is different if it's executable.
*> executable .do is run as is, non-executable is run with /bin/sh -e[x]*
http://www.goredo.cypherpunks.ru/Notes.html#Notes
What is the motivation for this behavior? It's different from
apenwarr's implementation.
The tool is fantastic, by the way. Thank you!
Cheers,
--Norm
On Fri, Feb 26, 2021 at 11:26 AM Norman Kabir <nkabir@gmail•com> wrote:
> How is the shell specified in goredo? I have .do files with #!/bin/bash
> but when I invoke "source" I get an error message:
>
> source: not found
>
> This implies that it's running sh instead of bash.
>
> #!/usr/bin/env bash
>
> echo "Hello" 1>&2
> echo $SHELL $0 1>&2
> source foo.sh
>
> Cheers,
> --Norm
>
[-- Attachment #2: Type: text/html, Size: 1515 bytes --]
next prev parent reply other threads:[~2021-02-26 20:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-15 14:05 goredo 1.3.0 release announcement Sergey Matveev
2021-02-26 17:26 ` GoRedo shell specification? Norman Kabir
2021-02-26 17:39 ` spacefrogg-goredo
2021-02-26 20:15 ` Norman Kabir [this message]
2021-02-26 20:59 ` Sergey Matveev