#!/bin/sh cat << EOF | "${EDITOR:-vim}" #include int main(void) { return 0; } EOF