** Actually, ed will print ? if you try to quit without writing. At that point, write if you want; if not, another q will get you out regardless.