Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^5: Output of a command

by Anomynous Monk (Scribe)
on Jul 30, 2008 at 06:35 UTC ( [id://701032]=note: print w/replies, xml ) Need Help??


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

Yeah. Help going to stderr also breaks the --help|less idiom.

Replies are listed 'Best First'.
Re^6: Output of a command
by parv (Parson) on Jul 30, 2008 at 06:40 UTC
    ... then frustratingly one invokes p --help 2>&1 | q (in a bourne like shell).
Re^6: Output of a command
by Fletch (Bishop) on Jul 30, 2008 at 15:06 UTC

    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.

      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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://701032]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-04-19 23:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found