Skip to content

SPT_NOENV results in getproctitle missing last char #118

@elelayan

Description

@elelayan

OS: Linux xxx 5.10.0-16-amd64 #1 SMP Debian 5.10.127-1 (2022-06-30) x86_64 GNU/Linux
Python: Python 3.7.12 | packaged by conda-forge | (default, Oct 26 2021, 06:08:53) [GCC 9.4.0] on linux

py-setproctitle: 1.3.1 wheel from pypi or master compiled locally with pip install -e ./py-setproctitle --global-option --with-debugging-symbols --global-option --debug

test script:

#!/usr/bin/env python3

import setproctitle


if __name__ == '__main__':
    print("PROCTITLE:", setproctitle.getproctitle())

OUTPUT

$ SPT_NOENV=yes /tmp/hello.py 
PROCTITLE: /tmp/hello.p

EXPECTED OUTPUT (contains the last y)

$ SPT_NOENV=yes /tmp/hello.py 
PROCTITLE: /tmp/hello.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions