September 27th, 2007
Answers to the Redirection Puzzle
This post discusses answers to the Redirection Puzzle. Do not read on if you do not want to see or discuss answers (yet).
My solution is not very complicated or long at 57 characters (9 of them spaces, 6 of them optional), but it is less than the ideal of the shell providing better support for pipe redirection. I would like to see zsh incorporate the Plan 9 redirection syntax to make this easier. I would have suggested it to them, but I feel like such a suggestion should have a patch attached. 😉
Anyway, go ahead and post answers or potential solutions to the puzzle below in the comments. If you do not want to register for an account you can email your answers or questions to cosine at cosine dot org. I will post noteworthy comments sent to my email below.