diff options
author | Profpatsch <mail@profpatsch.de> | 2020-12-28 12:33:46 +0100 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2020-12-28 12:33:46 +0100 |
commit | 4f91df5db28a67fda6eca81ae9be7e580e637f98 (patch) | |
tree | f4c3a53d5f37b4aa161f63a4db433bd0ed2d7925 /pkgs/profpatsch/lru.nix | |
parent | a8f1f449657225795af87e0045ec442ce3c82a26 (diff) |
pkgs/profpatsch/e: translate [ and ] to block boundaries
Since the goal of using `e` with argv is interactive execution of block-style commands from the command line, the use of { and } for blocks is sub-optimal, since bash (and ostensibly also fish) interpret them as metacharacters and assign some semantics. [ and ] on the other hand are not taken (apart from the `[` executable, which is only relevant in command position and can always be replaced by the `test` command). So we translate a stand-alone "[" argument to "{" and the same for "]"/"}", giving us a transparent block syntax.
Diffstat (limited to 'pkgs/profpatsch/lru.nix')
0 files changed, 0 insertions, 0 deletions