[Jprogramming] Fields of 1!:0
David Mitchell
davidmitchell at att.net
Tue Sep 15 00:00:51 UTC 2020
I squinted at the code some more. Here is the real Linux (and likely Mac) Field 4:
start with out=:'------'
if file is user readable, and not writable, out=:'r' 0 } out
if '.' = 0{filename, out=:'h' 1 } out
if file is a dir, out=:'d' 4 } out
Cheers,
David
On 9/14/2020 10:46, 'robert therriault' via Programming wrote:
> 6 fields for Mac as well
>
> 1!:0 '.'
> ┌─┬──────────────────┬───┬───┬──────┬──────────┐
> │.│2020 8 15 17 42 27│512│rwx│-h--d-│drwxr-xr-x│
> └─┴──────────────────┴───┴───┴──────┴──────────┘
> JVERSION
> Engine: j902/j64avx2/darwin
> Beta-e: commercial/2020-08-14T13:00:52
> Library: 9.02.05
> Qt IDE: 1.8.7/5.12.7(5.12.7)
> Platform: Darwin 64
> Installer: J902 install
> InstallPath: /users/bobtherriault/j902
> Contact: www.jsoftware.com
>
> Cheers, bob
>
>> On Sep 14, 2020, at 06:24, David Mitchell <davidmitchell at att.net> wrote:
>>
>> Linux has returned 6 fields and Windows 5 for some time.
>>
>> Looking at xd.c, the 6th field is this :
>> Return mode_t formatted into 11-character buffer
>>
>> Field 4 seems to be the owning directory information.
>>
>> Cheers,
>> David
>>
>> On 9/14/2020 03:34, ethiejiesa via Programming wrote:
>>> Right now, NuVoc documents that the rows returned by (1!:0) have 5 fields, but
>>> I am seeing 6 in my version and platform:
>>> 1!:0 '.'
>>> ┌─┬──────────────────┬───┬───┬──────┬──────────┐
>>> │.│2019 9 14 10 51 16│264│rwx│-h--d-│drwxr-xr-x│
>>> └─┴──────────────────┴───┴───┴──────┴──────────┘
>>> JVERSION
>>> Engine: j901-f/j64/linux
>>> Release: GPL3/2020-08-04T13:27:14
>>> Library: 9.01.24
>>> Platform: Linux 64
>>> Installer: unknown
>>> InstallPath: /usr/share/j
>>> Contact: voidlinux.org
>>> Would like to update the wiki, so could someone confirm what the 6th field is?
>>> The 6th fields looks like what you see with `stat --format=%A', i.e. a
>>> effectively a stat(2) syscall on linux. However, how do the "permissions" of
>>> field 4 relate to this? Also, what does the 6th field look like for Windows
>>> users?
>>> Cheers!
>>> ----------------------------------------------------------------------
>>> For information about J forums see http://www.jsoftware.com/forums.htm
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
More information about the Programming
mailing list