---
source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs
---
S605.py:8:11: S605 Starting a process with a shell: seems safe, but may be changed in the future; consider rewriting without `shell`
   |
 7 | # Check all shell functions.
 8 | os.system("true")
   |           ^^^^^^ S605
 9 | os.popen("true")
10 | os.popen2("true")
   |

S605.py:9:10: S605 Starting a process with a shell: seems safe, but may be changed in the future; consider rewriting without `shell`
   |
 7 | # Check all shell functions.
 8 | os.system("true")
 9 | os.popen("true")
   |          ^^^^^^ S605
10 | os.popen2("true")
11 | os.popen3("true")
   |

S605.py:10:11: S605 Starting a process with a shell: seems safe, but may be changed in the future; consider rewriting without `shell`
   |
 8 | os.system("true")
 9 | os.popen("true")
10 | os.popen2("true")
   |           ^^^^^^ S605
11 | os.popen3("true")
12 | os.popen4("true")
   |

S605.py:11:11: S605 Starting a process with a shell: seems safe, but may be changed in the future; consider rewriting without `shell`
   |
 9 | os.popen("true")
10 | os.popen2("true")
11 | os.popen3("true")
   |           ^^^^^^ S605
12 | os.popen4("true")
13 | popen2.popen2("true")
   |

S605.py:12:11: S605 Starting a process with a shell: seems safe, but may be changed in the future; consider rewriting without `shell`
   |
10 | os.popen2("true")
11 | os.popen3("true")
12 | os.popen4("true")
   |           ^^^^^^ S605
13 | popen2.popen2("true")
14 | popen2.popen3("true")
   |

S605.py:13:15: S605 Starting a process with a shell: seems safe, but may be changed in the future; consider rewriting without `shell`
   |
11 | os.popen3("true")
12 | os.popen4("true")
13 | popen2.popen2("true")
   |               ^^^^^^ S605
14 | popen2.popen3("true")
15 | popen2.popen4("true")
   |

S605.py:14:15: S605 Starting a process with a shell: seems safe, but may be changed in the future; consider rewriting without `shell`
   |
12 | os.popen4("true")
13 | popen2.popen2("true")
14 | popen2.popen3("true")
   |               ^^^^^^ S605
15 | popen2.popen4("true")
16 | popen2.Popen3("true")
   |

S605.py:15:15: S605 Starting a process with a shell: seems safe, but may be changed in the future; consider rewriting without `shell`
   |
13 | popen2.popen2("true")
14 | popen2.popen3("true")
15 | popen2.popen4("true")
   |               ^^^^^^ S605
16 | popen2.Popen3("true")
17 | popen2.Popen4("true")
   |

S605.py:16:15: S605 Starting a process with a shell: seems safe, but may be changed in the future; consider rewriting without `shell`
   |
14 | popen2.popen3("true")
15 | popen2.popen4("true")
16 | popen2.Popen3("true")
   |               ^^^^^^ S605
17 | popen2.Popen4("true")
18 | commands.getoutput("true")
   |

S605.py:17:15: S605 Starting a process with a shell: seems safe, but may be changed in the future; consider rewriting without `shell`
   |
15 | popen2.popen4("true")
16 | popen2.Popen3("true")
17 | popen2.Popen4("true")
   |               ^^^^^^ S605
18 | commands.getoutput("true")
19 | commands.getstatusoutput("true")
   |

S605.py:18:20: S605 Starting a process with a shell: seems safe, but may be changed in the future; consider rewriting without `shell`
   |
16 | popen2.Popen3("true")
17 | popen2.Popen4("true")
18 | commands.getoutput("true")
   |                    ^^^^^^ S605
19 | commands.getstatusoutput("true")
20 | subprocess.getoutput("true")
   |

S605.py:19:26: S605 Starting a process with a shell: seems safe, but may be changed in the future; consider rewriting without `shell`
   |
17 | popen2.Popen4("true")
18 | commands.getoutput("true")
19 | commands.getstatusoutput("true")
   |                          ^^^^^^ S605
20 | subprocess.getoutput("true")
21 | subprocess.getstatusoutput("true")
   |

S605.py:20:22: S605 Starting a process with a shell: seems safe, but may be changed in the future; consider rewriting without `shell`
   |
18 | commands.getoutput("true")
19 | commands.getstatusoutput("true")
20 | subprocess.getoutput("true")
   |                      ^^^^^^ S605
21 | subprocess.getstatusoutput("true")
   |

S605.py:21:28: S605 Starting a process with a shell: seems safe, but may be changed in the future; consider rewriting without `shell`
   |
19 | commands.getstatusoutput("true")
20 | subprocess.getoutput("true")
21 | subprocess.getstatusoutput("true")
   |                            ^^^^^^ S605
   |

S605.py:26:11: S605 Starting a process with a shell, possible injection detected
   |
24 | # Check command argument looks unsafe.
25 | var_string = "true"
26 | os.system(var_string)
   |           ^^^^^^^^^^ S605
27 | os.system([var_string])
28 | os.system([var_string, ""])
   |

S605.py:27:11: S605 Starting a process with a shell, possible injection detected
   |
25 | var_string = "true"
26 | os.system(var_string)
27 | os.system([var_string])
   |           ^^^^^^^^^^^^ S605
28 | os.system([var_string, ""])
   |

S605.py:28:11: S605 Starting a process with a shell, possible injection detected
   |
26 | os.system(var_string)
27 | os.system([var_string])
28 | os.system([var_string, ""])
   |           ^^^^^^^^^^^^^^^^ S605
   |
