The sudo.py rule assumes that '&&' is every shells 'and' operator. This is not the case for fish shell v2.
Contributor guide
Tech stack
python
Domain
cli
Issue type
bug
DifficultyEstimated implementation difficulty for a new contributor, from 1 for very small changes to 5 for expert-level work.
2
Estimated timeA rough time range for an experienced contributor to investigate, implement, test, and prepare a pull request.
under 1 hour
Activity statusHow available the issue appears right now: fresh, active, stale, blocked, or waiting on maintainer input.
fresh
ClarityHow clearly the issue explains the expected change, acceptance criteria, and next step.
clear
Prerequisites
basic Pythonshell scripting
Newbie friendlinessA 1-100 score estimating how approachable this issue is for first-time contributors.
80
Research direction
The issue is about the sudo rule in sudo.py. The rule currently hard codes '&&' as the shell's 'and' operator. To fix, research how fish shell represents the 'and' operator (likely the 'and' keyword). Check the thefuck codebase for existing shell detection logic. Modify the sudo rule to use the appropriate operator based on the shell. Review the issue comments for any additional context.