Re: sub default question
[email protected] (Peter Pentchev) Wed, 19 Nov 2025 11:38:24 +0200
| Newsgroups | perl.perl6.users |
|---|---|
| Message-ID | <[email protected]> |
--cb8PV4d+9pquJnLi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 19, 2025 at 01:13:23AM -0800, ToddAndMargo via perl6-users wrot= e: > Hi All, >=20 > https://github.com/rakudo/rakudo/blob/main/src/core.c/Proc.rakumod > 232: multi sub run(*@args where .so, :$in =3D '-', :$out =3D '-', :$err = =3D '-', >=20 > Here is my confusion. The above sets > :$in =3D '-', :$out =3D '-', :$err =3D '-', > to "-" as the default. >=20 > But if you leave > :$out and :$err > off the run line, STDOUT and STDERR do not > get captured and are sent to the console. =2E..that's exactly what "-" means. G'luck, Peter --=20 Peter Pentchev [email protected] [email protected] [email protected] PGP key: https://www.ringlet.net/roam/roam.key.asc Key fingerprint 2EE7 A7A5 17FC 124C F115 C354 651E EFB0 2527 DF13 --cb8PV4d+9pquJnLi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEELuenpRf8EkzxFcNUZR7vsCUn3xMFAmkdkAsACgkQZR7vsCUn 3xMwDg/+OuQQNaHBoTc+9z7Q1lZC1Z+EXsO6Q8/GKTpjrPryVJamFMrlMQ5VtQe0 sF4CWiYxPftwZXQ14nXC6blul8hOu7elpgrBtKyrPq3T8gLbcr4MvGKlHETd7D+J mwyPvojstxiKfY6G9wUsSxXwuwrmSLqGArlg3kvDygdyMxumnzVm6+MclmHrBat7 ax9tYYu0Owi+B+Mx6vBvHEAl+F4dOKW5rlfhfk1uFg0xO+DP9FBp3Bo4sAnO/2y8 y5MF0CQ1MotvskY6xDJpcNBafw+fXBK7kdi+nBydsuEE+JYLsD/5BUtokwaPPyy6 ahAxssHvp5Z83dZ98RSdXwwk/a8F5LfgrZBi3HchKMO6SXoZ7yDtKSeCSSHpis7Z T8HkHPOTbZXwPGhXtd1mDjkogYHnNkRpjQXv4P6rK9vSAAt5dNM+ySSYu+uDaCIC cuM9li3pvCoERolOAQMSzZGs/w0Bu7aA7N1vAZMQ/fJ+MDVKYzXiv3w7ZB/WadQJ K9EcSMRbHGWNlllX+9QUC+QHE2sgnz9tFZAjK+IG6mnpI0XOZRX6lPjntTm70I7E 0fZG6aEz5OvnNjzOSlE9b8HZyGcwhg2QvtCIarFnLPCQH6TLjFB/ue01l1VYFKtq qYFRg55rgLLc0a3TOjoaVPdxVta0YA/d7nXWYjgA4GzR9XrOc8c= =JW/8 -----END PGP SIGNATURE----- --cb8PV4d+9pquJnLi--