From mboxrd@z Thu Jan 1 00:00:00 1970 From: dexen deVries To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Date: Tue, 6 Aug 2013 15:16:36 +0200 Message-ID: <2181530.vIh4zXDObE@coil> User-Agent: KMail/4.10.5 (Linux/3.11.0-rc3-l52; KDE/4.10.5; x86_64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Subject: [9fans] [p9p] rc script fails silently in conditional expression calling a function Topicbox-Message-UUID: 6f642788-ead8-11e9-9d60-3106f5b1d025 on Plan 9 Port, the following Rc script fails silently, upon calling th= e `foo'=20 function in ``if (foo)''. i expected it to output `FAIL' instead. is th= at by=20 design, or is it some sort of a bug? #!/usr/bin/env rc flag e + fn foo { =09/bin/false } if (foo) =09echo SUCCESS if not =09echo FAIL for contrast, the following script outputs `FAIL' as expected -- the=20= difference being in calling the /bin/false directly in ``if(/bin/false)= '' #!/usr/bin/env rc flag e + if (/bin/false) =09echo SUCCESS if not =09echo FAIL --=20 dexen deVries [[[=E2=86=93][=E2=86=92]]] Take care of the luxuries and the necessities will take care of themsel= ves. -- L. Long