Re: bash cli

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Stuart Murray-Smith wrote:
> Yes, it's difficult to describe, and that's prolly why I've
> struggled to Google it. If one completed a bash script with 'exit 0'
> and all ran well, nothing (or null) is sent to stdout. If a script
> passes a variable on to another executable, this is may not
> necessarily be sent to stdout, but there is something one can pass
> at cli time that does copy this/these var(s) to stdout to see what
> same script produces.

Put "set -x" near the top of the script or run it via sh -x.  As in:

sh -x /some/script/that/you/want/to/debug

Is that the sort of thing you're after?

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Eat dye and shit colours.

Attachment: pgpDYHbzi5Vcz.pgp
Description: PGP signature


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux