Concept Flow - String suffix removal (${var%pattern})
Start with variable var
Apply suffix pattern match
Remove shortest matching suffix
Return modified string
End
The shell checks the variable's value, finds the shortest suffix matching the pattern, removes it, and returns the result.