autonity / aut

A command-line RPC client for Autonity
MIT License
11 stars 10 forks source link

Problen in the path returned by the command "aut account list" when we use the option --with-files #140

Closed jfaiza closed 7 months ago

jfaiza commented 7 months ago

Hello,

I noticed a problem in the path returned by the command "aut account list" when we use the option "--with-files". We have an extra slash in the returned Path of key files.

To regenerate the bug: command: aut account list -s /home/autonity/keyfiles --with-files Result: 0xADDRESS /home/autonity/keyfiles//aos.key

aiman commented 7 months ago

I was not able to reproduce this issue with aut v0.3.0. The printed paths do not contain additional slash by default. Only when the keystore path specified with -s or --keystore contains additional slashes, the output path will contain those extra slashes.

jfaiza commented 7 months ago

Yes you're right. I did more tests. But I think this problem needs to be managed, because using linux autocompletion it initializes the path with this slash. The result should return a correct path.

aiman commented 7 months ago

This is not a defect, the behavior of the tool is correct and is consistent with POSIX specification. I refer you to IEEE Std 1003.1-2017 for further reading.