zopencommunity / coreutilsport

A collection of basic Unix utilities
Apache License 2.0
0 stars 3 forks source link

ptx - EDC5121I Invalid argument #47

Closed gngrossi closed 1 year ago

gngrossi commented 1 year ago

bash-5.2$ ptx -A /tmp/gary/Z ptx: /tmp/gary/Z: EDC5121I Invalid argument.

using stdin

bash-5.2$ ptx -A /tmp/gary/Z :1: /tmp/gary/ Z :1: /tmp/ gary/Z :1: / tmp/gary/Z

gngrossi commented 1 year ago

Any update? thanks

IgorTodorovskiIBM commented 1 year ago

Any update? thanks

Hey, no update as of yet. I'm not very familiar with ptx. Do you have a use case for it?

IgorTodorovskiIBM commented 1 year ago
[ITODORO@ZOSCAN2B ~/projects/coreutilsport_new2/coreutils-9.1-prev/src]$ ./ptx -A cp
ptx: cp: EDC5121I Invalid argument. (errno2=0xC00B0022)
[ITODORO@ZOSCAN2B ~/projects/coreutilsport_new2/coreutils-9.1-prev/src]$ bpxmtext C00B0022

JrEdc1opsEinval02: The mode argument passed to fopen() or freopen() contained
more information than just the open mode, but did not use a comma to separate
the additional keywords.

Action: Correct the mode argument. White-space characters are not permitted
within the open mode. The 't' specification is not allowed for POSIX(OFF)
applications. Separate the open mode from the remaining keywords with a comma.
 Note that it could be possible that the open mode itself is not correct.

Source: edc1opst.c
gngrossi commented 1 year ago

I don't have a use case other than seeing it in the coreutils bin directory and testing it.

MikeFultonDev commented 1 year ago

Using https://unix.stackexchange.com/questions/92730/usr-bin-ptx-can-you-provide-a-use-case-or-two as an example, it seems to be working ok... I created /tmp/gary/A with the contents:

a
b
c

and got as output:

ptx /tmp/gary/A
                                       a b c
                                   a   b c
                                 a b   c

with the latest build (9.4 coreutils, october 5th)

Does this look right now @gngrossi ?

gngrossi commented 1 year ago

Yes...looks good I will close...thanks

bash-5.2$ cat Z A B C

on Z

bash-5.2$ ptx -A Z Z:1: A B C Z:1: A B C Z:1: A B C

on Linux

[a02858@l98misdb491]$ ptx -A Z Z:1: A B C Z:1: A B C Z:1: A B C