error if unable to modify self

This commit is contained in:
Thomas Bereknyei 2021-03-01 14:24:12 -05:00
parent f4298f10c2
commit 75e58d8c33

View file

@ -573,6 +573,8 @@ apesh: .ascii "'\n#'\"\n" # sixth edition shebang
.shstub ape_elf_shstrndx,2 # 3e: e_shstrndx .shstub ape_elf_shstrndx,2 # 3e: e_shstrndx
.ascii "' >&7\n" .ascii "' >&7\n"
.ascii "exec 7<&-\n" .ascii "exec 7<&-\n"
.ascii "else\n"
.ascii "exit 1\n"
.ascii "fi\n" .ascii "fi\n"
.ascii "exec \"$0\" \"$@\"\n" # etxtbsy tail recursion .ascii "exec \"$0\" \"$@\"\n" # etxtbsy tail recursion
.ascii "R=$?\n" # architecture optimistic .ascii "R=$?\n" # architecture optimistic