http://qs321.pair.com?node_id=701152


in reply to Re^5: Output of a command
in thread Output of a command

Which is why you should use a better shell and just use --help |& less instead (and set up abbrevs so you can just type ,le SPC which expands into |& less for you . . . :).

The cake is a lie.
The cake is a lie.
The cake is a lie.

Replies are listed 'Best First'.
Re^7: Output of a command
by gaal (Parson) on Jul 30, 2008 at 18:18 UTC
    Actually, what I do for this stuff is set up the following in my .bashrc:

    # automatically keep output of commands in a logfile for immediate # subsequent inspection alias ll="$PAGER /tmp/last.log" l () { if [ "x$1" = "x" ] ; then echo "did you mean 'll'?" ; \ else /usr/bin/env " $@" 2>&1 | tee /tmp/last.log ; fi }

    l !! and then ll is less mental load for me.