Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #21210
| Newsgroups | comp.lang.forth |
|---|---|
| Date | 2013-03-28 13:52 -0700 |
| Message-ID | <1e8444f5-2e5b-497f-b4f9-7fc84fdfa38d@googlegroups.com> (permalink) |
| Subject | System calls from SP-Forth/Linux |
| From | Eduardo Costa <edu500ac@gmail.com> |
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
BTW, I don't need implementation of each bash function. Something like the Swift Forth $ word will do.
~/frt/SwiftForth$ bin/linux/sf
SwiftForth i386-Linux 3.4.5 03-Oct-2012
$ ls
bin fib.f LICENSE martinBrad.f~ pbrad.f src
doc lib martinBrad.f #pbrad.f# sieve.f unsupported
ok
Back to comp.lang.forth | Previous | Next — Next in thread | Find similar
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