summary refs log tree commit diff
path: root/bin/edit.sh
blob: c276707fd3d1af1d218f4789c932af3dac56c11c (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/bin/sh
set -eu

script=$(mktemp)
trap "rm -f '$script'" EXIT

sed "s/.*/${1:-: &}/" >> "$script"
$EDITOR "$script"
sh -eux "$script"
rc/commit/bin/cash/test.c?id=55eaf9f19fb718b1e9b30c64d330a17589642e3e&follow=1'>Move bltin out of subdirectoryJune McEnroe