💻 Software
Function which overrides bash command
Fresh7 days ago
Mar 15, 2026979 viewsConfidence Score0%
0%
Problem
Is it possible to call a bash command which has been overridden with a function? I'd like to make with no arguments alias to otherwise get normal behaviour. I've tried but this seems to give infinite recursion. Normally I'd use the full path to whatever program I'm overriding, but is a built-in bas…
Error Output
pushd(){
if [ $# -eq 0 ]; then
pushd .
else
pushd $@
fi
}Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Function which overrides bash command
Low Risk
You should use the command:
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix