using Mac OSX shell commands from /bin or /usr/bin in acme sac

59 views
Skip to first unread message

tasm

unread,
Sep 13, 2008, 6:02:33 PM9/13/08
to acme-sac
Hello,

I am very new to acme-sac and am enthused about using it. I am a
little confused about how to use programs with the shell, however.

Basic shell commands do not work, i.e. executing the following with
button 2:

/n/bin/local/echo "hello"

produces something like:

"Sh":fail:parse error


Other commands will produce something like:

"Sh":fail:bad header


It is clear to me that whatever shell acme is using (rc?) is not able
to use the programs from /bin or /usr/bin in OSX but I am uncertain as
to why.

underspecified

unread,
Sep 13, 2008, 8:18:29 PM9/13/08
to acme...@googlegroups.com
You need to use the "os" command to interface with host operating system commands.
Try "man os" for usage info. The shell in Acme SAC is called "sh" and has some important
differences from Bourne shell or rc. See http://www.vitanuova.com/inferno/man/1/sh.html
to get started.

--underspecified

roger peppe

unread,
Sep 15, 2008, 7:02:11 AM9/15/08
to acme...@googlegroups.com
On Sat, Sep 13, 2008 at 11:02 PM, tasm <tmcd...@gmail.com> wrote:
> /n/bin/local/echo "hello"
>
> produces something like:
>
> "Sh":fail:parse error

what underspecified says.

but for a quick solution to the immediate source of your
error message: there's only one form of quoting
in the inferno shell - single quote. double-quote
is actually a special kind of backquote operator. see the manual.

Michaelian Ennis

unread,
Sep 17, 2008, 12:17:41 AM9/17/08
to acme...@googlegroups.com
On Mon, Sep 15, 2008 at 7:02 AM, roger peppe <rogp...@gmail.com> wrote:
> error message: there's only one form of quoting
> in the inferno shell - single quote. double-quote
> is actually a special kind of backquote operator. see the manual.
>

Specifically there's man 1 sh which details

1) it's use in character sequences (I am not sure it's accurate to say
"strings" since the manual doesn't).

and

2) as a modifier of the $,{} operators.

Are brace blocks considered operators or is there another name for
this grammatical element?

Ian

Reply all
Reply to author
Forward
0 new messages