On Mon, Nov 02, 2026 at 12:25:15PM +0100, Bernd Paysan wrote:
> > There is a gforth.alias in the git repository of Gforth under docker/
> > runner.gforth.alias, 
> 
> https://cgit.git.savannah.gnu.org/cgit/gforth.git/tree/docker/runner/
> gforth.alias

Or, without HTML wrapper:

https://cgit.git.savannah.gnu.org/cgit/gforth.git/plain/docker/runner/gforth.alias

The idea is apparently to use it as follows:

source gforth.alias
gforthdk

Unfortunately, this produces

[b3:/tmp:9181] gforthdk

*the terminal*:0:-140317451855311: error: No such file or directory
>>><<<
Backtrace:
/usr/share/gforth/1.0.0/mkdir.fs:55:41:  0 $7F9E3364FB20 perform 
/usr/share/gforth/1.0.0/libcc.fs:1188:26:  1 $7F9E3366E258 mkdir-parents 
/usr/share/gforth/1.0.0/libcc.fs:1253:5:  2 $7F9E3366E748 init-libcc 
/usr/share/gforth/1.0.0/random.fs:52:16:  3 $7F9E33680650 
/usr/share/gforth/1.0.0/unix/libc.fs:177:12:  4 $7F9E3369E730 
/usr/share/gforth/1.0.0/unix/pthread.fs:499:18:  5 $7F9E336A0F60 
/usr/share/gforth/1.0.0/unix/disasm2.fs:224:18:  6 $7F9E336A2118 

Asking what the alias does shows:

alias gforthdk='docker run -ti --user=29294:29015 --group-add=29015 
--group-add=122  -v /tmp:/workdir -w /workdir --rm forthy42/gforth'

I think the reason is that mkdir-parents does not work if you cannot
write to one of the directories in /home/gforth/.  And with the --user
option it cannot.  At least the problem disappears if I leave the
--user option away:

[b3:/tmp:9189] docker run -ti  --group-add=29015 --group-add=122  -v 
/tmp:/workdir -w /workdir --rm forthy42/gforth gforth -e '.( hello, world) cr 
bye'
hello, world

- anton

Reply via email to