← Back to wkappbot
wkappbot ★★☆

# wkedit shell distortion recovery

3rd retry in wkedit.sh: recover original args from parent cmdline when shell distortion causes old_string not found

user/developer
wkedit shell distortion recovery draft

## Steps

1. CONCEPT: 3rd retry after 2-level auto-retry...
2. WHEN-NEEDED: bash -c distortion, pipe escapi...
3. STEP 1 detect parent shell: check /proc/$PPI...
4. STEP 2 extract original args: parse CommandL...
5. STEP 3 compare+retry: if recovered_old != re...
6. CONSTRAINTS: (a) MSYS2 git-bash lacks /proc...
7. IMPLEMENTATION SKETCH: _distortion_recover()...
8. STATUS: DRAFT. Not implemented. Requires WMI...
9. RELATED: wkedit.sh _do_edit() lines 60-120 (...