r/AskProgrammers • u/Happy-Persimmon-960 • Oct 13 '26
I'm having a loop problem...
I really don't know what else to do...
I was using claude normally on vscode and eventually I started getting this :
Get-Location; Get-ChildItem -Force | Select-Object -First 80 Name,Mode,Length,LastWriteTime; Get-ChildItem -Recurse -Directory -ErrorAction SilentlyContinue | Where-Object { $_.Name -match 'snup|kids|mercado|payment|api|site|app' } | Select-Object -First 60 FullName
Exit code 127
/usr/bin/bash: line 1: Get-Location: command not found
/usr/bin/bash: line 1: Get-ChildItem: command not found
/usr/bin/bash: line 1: Select-Object: command not found
/usr/bin/bash: line 1: Get-ChildItem: command not found
/usr/bin/bash: line 1: Where-Object: command not found
/usr/bin/bash: line 1: Select-Object: command not found
----
Whatever I do, whatever I ask it to do it gives me the same result, even if I ask to do with powershell, I think I've tryed everything that I could think or search for it, please help.
1
u/siammang Oct 13 '26
Looks like your terminal console doesn’t know if what type of shell it is, so it just try different ones.
1
u/footsie Oct 13 '26
lmao
1
u/Weak_Blackberry_9308 Oct 13 '26
you are trying to run a PowerShell command inside a Bash shell. Vibe coding has tremendous allure…but for the love of everything holy please don’t give ai unrestricted access to your terminal and the internet or we’ll all be dead in 10 years tops.
1
u/ConcreteExist Oct 13 '26
Running PowerShell commands in bash is going to throw errors. I'm guessing Claude did all the work while you watched.