panicz / grasp

The GRAphical Scheme Programming Environment
GNU General Public License v3.0
39 stars 4 forks source link

Golf the test runner #2

Closed pfusik closed 1 year ago

pfusik commented 1 year ago

That was too verbose.

Alternative:

eval `sed -n $(($n+9))p $0`
panicz commented 1 year ago

Retrospectively, it turned out that the PR contained a bug: it should also have changed #!/bin/sh to #!/bin/bash, because it uses features that are not present in sh.

pfusik commented 1 year ago

Does /bin/sh handle $(($n+10)) ?

panicz commented 1 year ago

Yes, but it seems that it doesn't support the <(...) syntax