lhunath 1290112832 learn echo `mycommand foo`: Run command, capture its output, feed it to the 'echo' command and tell it to output it again. A pointless operation (and broken by the lack of quotes). Instead, use just: mycommand foo lhunath 1381432867 forget lhunath 1381432874 learn #redirect $(echo