On Sun, 2025-11-16 at 05:55 -0800, ToddAndMargo via users wrote:
> On 11/16/25 3:14 AM, Marco Moock wrote:
> > Am 16.11.2025 um 03:05:27 Uhr schrieb ToddAndMargo via users:
> > 
> > > There is STDOUT, STDERR, and the exit code ($? in bash).
> > > What channel is it stored in?  STDEXIT?
> > > 
> > > Just curious about the name.
> > 
> > It is a variable.
> > 
> > $? is the name
> > 
> > 
> 
> 
> That is inside a bash shell.  I run my external
> programs from my code "outside" the shell from
> Raku's "run" command.  So no bash involved.
> It is called ".exitcode" in raku.
> 

The exit status of a process is not communicated via a file descriptor.
It's literally the return value of the exit(2) system call. The Shell
traditionally stores it as a variable ($?) but that's merely a
convenience. If you want to access it from something calling a Shell
program (or function) you have to pass it back explicitly or store it
somewhere the caller can find it.

poc
-- 
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to