# error: exit status 127

- **ID:** `go/os-exec-command-exit-status-127`
- **Domain:** go
- **Category:** system_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The executed command returned exit code 127, typically meaning 'command not found' in Unix-like systems.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 1.20 | active | — | — |
| 1.21 | active | — | — |

## Workarounds

1. **Capture stderr and check for 'not found' message** (90% success)
   ```
   cmd := exec.Command("command")
var stderr bytes.Buffer
cmd.Stderr = &stderr
if err := cmd.Run(); err != nil {
    if strings.Contains(stderr.String(), "not found") { /* handle */ }
}
   ```

## Dead Ends

- **Assuming it's always a missing dependency** — Could be due to wrong path or shell script issue; check stderr. (50% fail)
