Re: bash cli

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

 



On 8/21/07, Stuart Murray-Smith <eight32@xxxxxxxxx> wrote:
> > > > > Oh dear, I've forgotten what the bash cli is to see the output of a
> > > > > command line input (it dumps  result to screen). Pretty much the same
> > > > > bash functionality as Ctrl-R gives one a rolling history of entered
> > > > > commands.
> > > > >
> > > > > Could someone please remind me :-)
> > > > ----
> > > > question not clear...default of cli commands in bash shell would output
> > > > standard out and error out to screen so this should be the default
> > > > behavior.
> > >
> > > Thanks Craig :-)
> > >
> > > 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.
> > >
> > > I hope this makes sense :-)
> > >
> >
> >
> > Are you looking for "$?" (Dollar sign followed by ?). in bash this
> > holds the last exist status
>
> Thanks Yonas, Todd
>
> It's not in the script itself, but a keystroke sequence that one does
> at the command prompt... same as Ctrl-R gets one a rolling history
> stack :-)
>


so here you are assuming that the shell keeps a history of exit status?

/yonas

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux