Path: csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Martin Nicholas Newsgroups: comp.lang.forth Subject: Re: Gforth Android file access trouble Date: Sat, 30 May 2026 09:00:43 +0100 Organization: A noiseless patient Spider Lines: 40 Message-ID: <20260530090043.70ca3d84@dsklinux.internal> References: <874ijp1wxb.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Date: Sat, 30 May 2026 08:00:44 +0000 (UTC) Injection-Info: dont-email.me; logging-data="704660"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/pbFUPmsNaQbJU2RStWWrsavdtZKYyXPo="; posting-host="d915f08e9b512a623e66ef5b44f42ab2" Cancel-Lock: sha1:QJ08g/ZGe10wXixQvYikC352olw= sha256:jVrx9wV3bOKE1eo/T9W8HDfs2W5hxc0kKJzdLIW9Bew= sha1:H0i3t3FQIqsmXiaLQXmWfS8sAoM= X-Newsreader: Claws Mail 4.3.1 (GTK 3.24.49; x86_64-pc-linux-gnu) Xref: csiph.com comp.lang.forth:135106 On Sat, 30 May 2026 10:57:36 +0900 David Meyer wrote: > I'm running the Gforth 0.7.9_20251001 app on Android 16 smartphone. > > A few months ago, Bernd helped me here to get around Android's golden > caging by creating a directory under /storage/emulated/0/Download for > copying files in and out of the Gforth app, and adding that directory > to fpath. > > That worked well at that time, but yesterday I copied a new file into > that shared directory (/storage/emulated/0/Download/gforth on my > phone) and Gforth cannot find the file with either include or 'sh > ls', even though files I copied into the directory months ago still > show up as expected. > > Permissions on all the files in the directory, old and new, is 660 > (read+wrote for owner and group). I tried changing perms to 666 (add > world read+write), but it had no effect, and permissions were reset to > 660 after I restarted the phone. > > Any idea what's going on with the new file? > Dying SD-cards silently go read-only all by themselves. Possibly all types of flash memory do this too. Maybe that's it? Android/Linux, I seem to remember, silently re-mounts the disk read-only. -- Regards, Martin Nicholas. E-mail: reply-202605@mgn.org.uk (Address will be valid throughout May). Free Usenet posting accounts are available through: https://www.eternal-september.org/