izabera 1440948218 learn <>foo is the same as 0<>foo. To redirect both stdin and stdout to the same file, you need <>foo >&0 izabera 1440948457 forget