scsh-users
[Top] [All Lists]

Re: how do I write "(a; b) >file" in scsh?

To: Wolfgang Hukriede <whukriede@ifm-geomar.de>
Subject: Re: how do I write "(a; b) >file" in scsh?
From: RT Happe <rthappe@web.de>
Date: Wed, 15 Feb 2006 00:13:51 +0100
Cc: scsh-users@scsh.net
List-id: <scsh-users.list-id.scsh.net>
Sender: rthappe@web.de
Wolfgang Hukriede wrote:

how do I write "(a; b) >file" in scsh?

I came up with (run (begin (run (a)) (run (b))) (> file))
but this looks a bit ridiculous, right?

It does.  If you can stand a conditional sequence, you may go for this
also fairly ridiculous look: (&& (a) (epf (b) (> file))), e.g.

     (&& (sleep 5) (epf (ls) (> "foo.txt")))


rthappe

<Prev in Thread] Current Thread [Next in Thread>