marxin / cvise

Super-parallel Python port of the C-Reduce
Other
219 stars 25 forks source link

ability to use /bin/sh for --commands #119

Closed nekopsykose closed 11 months ago

nekopsykose commented 11 months ago

cvise supports --commands to quickly specify a simple test instead of needing to write a script:

--commands COMMANDS, -c COMMANDS
                      Use bash commands instead of an interestingness test case

the implementation matches the description, and writes a file with bash in the shebang.

personally i don't keep bash installed (not hard to acquire or anything, but i keep all my scripts to regular sh as i'm just used to that). it would be nice if it was possible to either default it to sh instead (though admittedly this would be a regression for some number of people, e.g. especially for the convenient |& shorthand i'm sure people use in bash), or allow --sh or similar (--shell sh ?) to write a #!/bin/sh shebang instead of requiring bash for the feature.

marxin commented 11 months ago

Thanks for the issue and I've just implemented the suggested --shell option. Enjoy.

nekopsykose commented 11 months ago

thanks!