---
source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs
---
S604 Function call with `shell=True` parameter identified, security issue
 --> S604.py:5:1
  |
5 | foo(shell=True)
  | ^^^
6 |
7 | foo(shell={**{}})
  |

S604 Function call with truthy `shell` parameter identified, security issue
  --> S604.py:11:1
   |
10 | # Truthy non-bool values for `shell`
11 | foo(shell=(i for i in ()))
   | ^^^
12 | foo(shell=lambda: 0)
   |

S604 Function call with truthy `shell` parameter identified, security issue
  --> S604.py:12:1
   |
10 | # Truthy non-bool values for `shell`
11 | foo(shell=(i for i in ()))
12 | foo(shell=lambda: 0)
   | ^^^
13 |
14 | # f-strings guaranteed non-empty
   |

S604 Function call with truthy `shell` parameter identified, security issue
  --> S604.py:15:1
   |
14 | # f-strings guaranteed non-empty
15 | foo(shell=f"{b''}")
   | ^^^
16 | x = 1
17 | foo(shell=f"{x=}")
   |

S604 Function call with truthy `shell` parameter identified, security issue
  --> S604.py:17:1
   |
15 | foo(shell=f"{b''}")
16 | x = 1
17 | foo(shell=f"{x=}")
   | ^^^
18 |
19 | # Additional truthiness cases for generator, lambda, and f-strings
   |

S604 Function call with truthy `shell` parameter identified, security issue
  --> S604.py:20:1
   |
19 | # Additional truthiness cases for generator, lambda, and f-strings
20 | foo(shell=(i for i in ()))
   | ^^^
21 | foo(shell=lambda: 0)
22 | foo(shell=f"{b''}")
   |

S604 Function call with truthy `shell` parameter identified, security issue
  --> S604.py:21:1
   |
19 | # Additional truthiness cases for generator, lambda, and f-strings
20 | foo(shell=(i for i in ()))
21 | foo(shell=lambda: 0)
   | ^^^
22 | foo(shell=f"{b''}")
23 | x = 1
   |

S604 Function call with truthy `shell` parameter identified, security issue
  --> S604.py:22:1
   |
20 | foo(shell=(i for i in ()))
21 | foo(shell=lambda: 0)
22 | foo(shell=f"{b''}")
   | ^^^
23 | x = 1
24 | foo(shell=f"{x=}")
   |

S604 Function call with truthy `shell` parameter identified, security issue
  --> S604.py:24:1
   |
22 | foo(shell=f"{b''}")
23 | x = 1
24 | foo(shell=f"{x=}")
   | ^^^
   |
