diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-02-02 23:47:19 +0100 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-02-02 23:47:19 +0100 |
commit | 54b7de4d1f1a73f212f176e477f02afec54e74cc (patch) | |
tree | cc677107bda5bb5b109849b4ad481d1883423077 /notes | |
parent | fix(modules/lf/commands/trash_restore): Depend on `gawk` not `gaw` (diff) | |
download | nixos-config-54b7de4d1f1a73f212f176e477f02afec54e74cc.zip |
fix(modules/lf/commands/): Correctly modify `$@` when in a while read loop
Previously, I just piped into the loop which resulted in it becoming a subshell (i.e., all variable assignments were local to that loop.) The only way to work around this in POSIX shell is via temporary files, like implemented in the `base.sh` `tmp` function. I'd hoped to finally rid myself of these, when migrating away from the sysLib, but I see no other way to achieve the desired result.
Diffstat (limited to 'notes')
0 files changed, 0 insertions, 0 deletions