Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

grass.script: Split the command string using shell-like syntax on the win32 platform same as on POSIX-compliant platforms #1908

Commits on Sep 27, 2023

  1. python: split the command string using shell-like syntax on the OS MS…

    … Windows
    
    Same as on POSIX-compliant platforms.
    
    * 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"'
    tmszi committed Sep 27, 2023
    Configuration menu
    Copy the full SHA
    704d9cc View commit details
    Browse the repository at this point in the history
  2. Fix Flake8 formatting error

    tmszi committed Sep 27, 2023
    Configuration menu
    Copy the full SHA
    82d5fa5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3db7568 View commit details
    Browse the repository at this point in the history
  4. Fix missing right parenthesis

    tmszi committed Sep 27, 2023
    Configuration menu
    Copy the full SHA
    ef4fa22 View commit details
    Browse the repository at this point in the history

Commits on Oct 1, 2023

  1. Update split() func doc

    tmszi committed Oct 1, 2023
    Configuration menu
    Copy the full SHA
    6568bd1 View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2023

  1. Incorporate suggestion

    Co-authored-by: Anna Petrasova <kratochanna@gmail.com>
    tmszi and petrasovaa authored Oct 2, 2023
    Configuration menu
    Copy the full SHA
    8aee0cb View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2023

  1. Merge remote-tracking branch 'upstream/main' into fix-launch-d_vect-w…

    …ith-where-param-on-ms-win-command-prompt
    neteler committed Nov 7, 2023
    Configuration menu
    Copy the full SHA
    5cb02a9 View commit details
    Browse the repository at this point in the history