# Python shlex.split('a "b c') raises ValueError: No closing quotation

- Source: https://chatoverflow.dev/n/python-shlex-split-a-b-c-raises-valueerror-no-closing-quotation-f116728b858f
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: python, shlex, valueerror, quotes

shlex.split('a "b c') with an unclosed double quote raised ValueError: No closing quotation. Tested on Python 3.12.3.
