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


Groups > comp.lang.forth > #21221

Re: System calls from SP-Forth/Linux

Newsgroups comp.lang.forth
Date 2013-03-29 03:20 -0700
References <1e8444f5-2e5b-497f-b4f9-7fc84fdfa38d@googlegroups.com> <kj2pls$ieh$2@online.de>
Message-ID <28d4e38c-f03e-49f0-a5ee-3a2a584dcf9e@googlegroups.com> (permalink)
Subject Re: System calls from SP-Forth/Linux
From Eduardo Costa <edu500ac@gmail.com>

Show all headers | View raw


On Thursday, March 28, 2013 10:10:18 PM UTC-3, Bernd Paysan wrote:
> Eduardo Costa wrote:
> 
> 
> 
> > Is there a way to perform system calls from SP-Forth, under Linux?
> 
> > Basically, I want to use bash commands, like ls, cd, cp, etc. For example,
> 
> > from bigforth, it is quite easy to call bash commands:
> 
> > 
> 
> > ~/frt/docs$ bigforth
> 
> > 
> 
> >              ANS bigFORTH 386-Linux rev. 2.4.0
> 
> > 
> 
> > 
> 
> > ls c*
> 
> > compact.pdf   cover.pdf      ok
> 
> 
> 
> That's not bash's ls, that's bigForth's ls.  If you want bash's ls, do
> 
> 
> 
> sh ls c*
> 
> 
> 
> That's similar to SwiftForth's $
> 
> 
> 
> -- 
> 
> Bernd Paysan
> 
> "If you want it done right, you have to do it yourself"
> 
> http://bernd-paysan.de/

Thank you for the tip. Bigforth is really amazing. It is small, fast, and offers a lot of features, like GUI, IDE, etc.

Back to comp.lang.forth | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

System calls from SP-Forth/Linux Eduardo Costa <edu500ac@gmail.com> - 2013-03-28 13:52 -0700
  Re: System calls from SP-Forth/Linux Bernd Paysan <bernd.paysan@gmx.de> - 2013-03-29 02:10 +0100
    Re: System calls from SP-Forth/Linux Eduardo Costa <edu500ac@gmail.com> - 2013-03-29 03:20 -0700
  Re: System calls from SP-Forth/Linux ifsp.mauro@gmail.com - 2013-03-29 15:00 -0700
    Re: System calls from SP-Forth/Linux Bernd Paysan <bernd.paysan@gmx.de> - 2013-03-30 00:13 +0100
    Re: System calls from SP-Forth/Linux albert@spenarnc.xs4all.nl (Albert van der Horst) - 2013-03-30 12:28 +0000
  Re: System calls from SP-Forth/Linux Rosangela Medeiros da Silva <rosangelamesil@gmail.com> - 2013-03-29 19:14 -0700
    Re: System calls from SP-Forth/Linux albert@spenarnc.xs4all.nl (Albert van der Horst) - 2013-03-30 12:32 +0000
  Re: System calls from SP-Forth/Linux Rosangela Medeiros da Silva <rosangelamesil@gmail.com> - 2013-03-30 06:41 -0700
  Re: System calls from SP-Forth/Linux albert@spenarnc.xs4all.nl (Albert van der Horst) - 2013-03-30 15:59 +0000
    Re: System calls from SP-Forth/Linux Rosangela Medeiros da Silva <rosangelamesil@gmail.com> - 2013-03-30 18:36 -0700
      Re: System calls from SP-Forth/Linux albert@spenarnc.xs4all.nl (Albert van der Horst) - 2013-03-31 02:39 +0000
        Re: System calls from SP-Forth/Linux Rosangela Medeiros da Silva <rosangelamesil@gmail.com> - 2013-03-31 07:53 -0700
          Re: System calls from SP-Forth/Linux Bernd Paysan <bernd.paysan@gmx.de> - 2013-04-01 02:44 +0200

csiph-web