Re: Incorrect display of user and group permissions when file owner's name contains one or more spaces
I'm afraid that there's no reliable way.
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
PuTTY does not know anything. PuTTY is a dumb terminal.
You execute a remotels
command in PuTTY. The remotels
has a direct access to the remote file system, where the group and owner are two distinct fields. So thels
command knows what is owner name and what is group name. It can then print the formatted line for each file and send it to PuTTY. The PuTTY displays the line only, without any need to understand the line.
ls
command in PuTTY. The remote ls
has a direct access to the remote file system, where the group and owner are two distinct fields. So the ls
command knows what is owner name and what is group name. It can then print the formatted line for each file and send it to PuTTY. The PuTTY displays the line only, without any need to understand the line.
PuTTY does not even try to understand the listing it just prints it.
So how does Putty correctly align the user and group names when displaying them? If I switch the user and group names, the respective columns are redimensioned to accommodate them. Doesn't this mean that Putty knows which words correspond to user and which correspond to group? It must somehow know when the name begins and when it ends.
PuTTY does not even try to understand the listing it just prints it.
Thanks for your report. How do you suggest to resolve the problem? I do not think there's a reliable way to parse the listing, if there a space in the a group or owner name.