Article View: de.test
Article #46Re: Nein, nein, nein!
From: Marcel Logen
Date: Thu, 22 Oct 2026 10:48
Date: Thu, 22 Oct 2026 10:48
37 lines
2975 bytes
2975 bytes
yeti in de.test:
[...]
>Mit der 'printf'-Vermeidung durch 'return' schieร ich mir hoffentlich
>nicht in den groรen Zeh:
>
>| $ printf 'main() { int x; return x ; }' | tcc - -run ; echo $?
>| 0
>| $ printf 'main() { int x; return x ; }' | gcc -xc - -o x ; ./x ; echo $?
>| <stdin>:1:1: warning: return type defaults to โintโ [-Wimplicit-int]
>| 0
Scheint zu funktionieren, zumindest mit gcc.
Gegenprobe:
| user15@o15:/tmp$ printf 'int main() { int x=51; return x ; }' | gcc -xc - -o x ; ./x ; echo "$?"
| 51
Bei der tcc-Zeile bin ich mir aber nicht sicher, denn
man bash sagt:
| The return status of a pipeline is the exit status of
| the last command, unless the pipefail option is enabled.
[...]
und:
| [pipefail] This option is disabled by default.
Marcel (Lines: 37)
--
โญโโโฎ โญโโโโโฎ โญโโฎ โญโโโโฎ โญโโฎ ..55..โญโโโโโโฎ
โญโโโฏ โ โฐโโโฎ โฐโโโฏ โฐโโโฎ ..36..โญโโฏ โฐโโฏ โ โญโโโโโฏ โญโโโฏ
โฏ โญโโฏ ...9..โญโโฏ โญโโโโโโโฏ โญโโโโโฎ โญโโฎ โญโโฏ โญโโโโโฏ โ โญโโฏ โญโโฎ
โฐโโโโโโโโโโฏ โฐโโโโโโโโโฏ โฐโโฏ โฐโโฏ..41..โฐโโโโโโโโโฏ โฐโโโโโโฏ โฐโโ
Technical Details
Message-ID:
<20261022th104811@o15.ybtra.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.tota-refugium.de!.POSTED!not-for-mailReferences:
<87jync36yh.fsf@dear-messner.dont-email.me> <20261020tu194524@o15.ybtra.de> <87ld7r21ff.fsf@yeti.tilde.institute> <87zew7xjl7.fsf@dear-messner.dont-email.me> <20261021we204605@o15.ybtra.de> <20261021we205243@o15.ybtra.de> <20261021we205645@o15.ybtra.de> <87h5iexs2b.fsf@dear-messner.dont-email.me> <AABq2b8JL4cAACMG.A3.flnews@o15.ybtra.de> <87a4o6xi1h.fsf@dear-messner.dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.tota-refugium.de!.POSTED!not-for-mail
From: Marcel Logen <333200007110-0201@ybtra.de>
Newsgroups: de.test
Subject: Re: Nein, nein, nein!
Date: Thu, 22 Oct 2026 12:48:11 +0200
Organization: Bureau Logen
Message-ID: <20261022th104811@o15.ybtra.de>
References: <87jync36yh.fsf@dear-messner.dont-email.me> <20261020tu194524@o15.ybtra.de> <87ld7r21ff.fsf@yeti.tilde.institute> <87zew7xjl7.fsf@dear-messner.dont-email.me> <20261021we204605@o15.ybtra.de> <20261021we205243@o15.ybtra.de> <20261021we205645@o15.ybtra.de> <87h5iexs2b.fsf@dear-messner.dont-email.me> <AABq2b8JL4cAACMG.A3.flnews@o15.ybtra.de> <87a4o6xi1h.fsf@dear-messner.dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=fixed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 22 Oct 2026 12:48:11 +0200
Injection-Info: tota-refugium.de;
logging-data="214744"; mail-complaints-to="abuse@news.tota-refugium.de"
Keywords: ignore
User-Agent: flnews/1.3.0 (for GNU/Linux)
Cancel-Lock: sha1:lzaiV1X5B+TqPYJvNTZoEIrHrWs=
X-User-ID: eJwFwYkBgDAIA8CV+JLUcbTA/iN4h6TzqggWFivL3bU5Rd3QeNaLONKwZxatT93xGIbyjB8bCBDo
X-Face: -w#29Cl`D+Eb]KLU0WQTBD%0rq2h`xR>)#Xh@*W4~]f+)iLQ`lm6sOI}&.22+QH:DBrY=9X_vefGFNI`x^F=\BG5Ddeq)C{0u>;!=s'GW=RvgHMKa%hyXdMqd2sD*ZF4}5\2qfePSHs%zv-kkeI\r