{
  "__type": "IngestedDoc",
  "__tag": 4010,
  "_content": {
    "Notes": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Warns": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Raises": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Yields": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Methods": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Returns": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Summary": {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Split a command line and report which tokens were originally quoted."
            }
          ]
        }
      ],
      "title": [],
      "level": 0,
      "target": null
    },
    "Receives": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Warnings": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Attributes": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Parameters": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Extended Summary": {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Returns a list of "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "(token, was_quoted)"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " pairs. "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "token"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " is the unquoted form, as "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "shlex.split(posix=True)"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " returns, and "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "was_quoted"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " is True if that token had any single- or double-quote characters in "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "commandline"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "."
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Useful for callers like "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "%run"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " that want to honor shell quoting when deciding whether to apply further expansion (glob, tilde) to a token."
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Detection is shlex-based on both passes so the quote semantics are the same on Posix and Windows. If "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "strict"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " is False, malformed input (e.g. an unbalanced quote) returns whatever was parsed so far instead of raising."
            }
          ]
        }
      ],
      "title": [],
      "level": 0,
      "target": null
    },
    "Other Parameters": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    }
  },
  "_ordered_sections": [
    "Summary",
    "Extended Summary",
    "Parameters",
    "Returns",
    "Yields",
    "Receives",
    "Raises",
    "Warns",
    "Other Parameters",
    "Attributes",
    "Methods",
    "Notes",
    "Warnings"
  ],
  "item_file": "/dev/ipython/IPython/utils/_process_common.py",
  "item_line": 237,
  "item_type": "function",
  "aliases": [
    "IPython.utils._process_common.arg_split_with_quotes"
  ],
  "example_section_data": {
    "__type": "Section",
    "__tag": 4015,
    "children": [],
    "title": [],
    "level": 0,
    "target": null
  },
  "see_also": [],
  "signature": {
    "__type": "SignatureNode",
    "__tag": 4029,
    "kind": "function",
    "parameters": [
      {
        "__type": "SigParam",
        "__tag": 4030,
        "name": "commandline",
        "annotation": "str",
        "kind": "POSITIONAL_OR_KEYWORD",
        "default": {
          "__type": "Empty",
          "__tag": 4031
        }
      },
      {
        "__type": "SigParam",
        "__tag": 4030,
        "name": "strict",
        "annotation": "bool",
        "kind": "POSITIONAL_OR_KEYWORD",
        "default": "True"
      }
    ],
    "return_annotation": "list[tuple[str, bool]]",
    "target_name": "arg_split_with_quotes"
  },
  "references": null,
  "qa": "IPython.utils._process_common:arg_split_with_quotes",
  "arbitrary": [],
  "local_refs": []
}