[GRASS-git] [OSGeo/grass] a34eb5: utils: fix add HTML module man page Source code se...

Tomas Zigo noreply at github.com
Tue Nov 21 11:23:53 PST 2023


  Branch: refs/heads/releasebranch_8_3
  Home:   https://github.com/OSGeo/grass
  Commit: a34eb518a065c59626ed3e218cf81bb30f69516b
      https://github.com/OSGeo/grass/commit/a34eb518a065c59626ed3e218cf81bb30f69516b
  Author: Tomas Zigo <50632337+tmszi at users.noreply.github.com>
  Date:   2023-11-21 (Tue, 21 Nov 2023)

  Changed paths:
    M utils/mkhtml.py

  Log Message:
  -----------
  utils: fix add HTML module man page Source code section for all module HTML files (#3248)

* utils: fix add HTML module man page Source code section for all module HTML files

* Source code section start on the new line


  Commit: 4f6ea9af3fc1f62f7c94510f1bc3cbbbbd56d5e5
      https://github.com/OSGeo/grass/commit/4f6ea9af3fc1f62f7c94510f1bc3cbbbbd56d5e5
  Author: Tomas Zigo <50632337+tmszi at users.noreply.github.com>
  Date:   2023-11-21 (Tue, 21 Nov 2023)

  Changed paths:
    M display/d.vect/d.vect.html
    M python/grass/script/utils.py

  Log Message:
  -----------
  python/grass/script: split the command string using shell-like syntax on the win32 platform same as on POSIX-compliant platforms (#1908)

e.g. run 'd.vect map=census where="cat > 10 AND cat < 20"' with
where parameter from Command Prompt CMD/emulator terminal:

non-POSIX platform

```
>>> import shlex
>>> shlex.split('where="cat > 10 AND cat < 20"', posix=False)
['where="cat', '>', '10', 'AND', 'cat', '<', '20"']
```

POSIX-compliant platform

```
>>> import shlex
>>> shlex.split('where="cat > 10 AND cat < 20"', posix=True)
['where=cat > 10 AND cat < 20']
```

Under OS MS Windows 'd.vect map=census where="cat > 10 AND cat < 20"'
command runned from Command Prompt CMD require use ^ carret symbol for
escaping special characters < > ( ) & | , ; ".

e.g. 'd.vect map=census where="cat ^> 10 AND cat ^< 20"'

---------

Co-authored-by: Anna Petrasova <kratochanna at gmail.com>


Compare: https://github.com/OSGeo/grass/compare/79322c70547e...4f6ea9af3fc1


More information about the grass-commit mailing list