Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: shell state of mind
- To: tlug@example.com
- Subject: Re: shell state of mind
- From: Viktor Pavlenko <vp@example.com>
- Date: Wed, 31 Jan 2001 18:47:32 +0900
- Content-Transfer-Encoding: 7bit
- Content-Type: text/plain; charset=us-ascii
- In-Reply-To: <14967.50617.399939.469844@example.com>
- References: <14966.35286.123393.87141@example.com><m2g0i01glo.fsf@example.com><14967.50617.399939.469844@example.com>
- Reply-To: tlug@example.com
- Resent-From: tlug@example.com
- Resent-Message-ID: <rrcBVB.A.PpH.l39d6@example.com>
- Resent-Sender: tlug-request@example.com
>>>>> On Wed, 31 Jan 2001 16:58:49 +0900, "Stephen J. Turnbull" <turnbull@example.com> said: >>>>> "sb" == SL Baur <steve@example.com> writes: sb> This was why the $( ... ) notation was invented. SJT> Actaully, I bet Uvator generated that with a Perl script! I'm sure it'd look much nicer in lisp, or cleaner in perl if writen by a perl expert ;) #!/usr/local/bin/perl -w use strict; my $a = shift; print f(0) . "\n"; sub f { my $b = shift; my $bq = ($b>0?'`':''); my $bs = '\\'x($b>1?((1<<$b-1)-1):0); return $bs . $bq . "echo $b " . (($b<$a)?f($b+1):'') . $bs . $bq; }
- Follow-Ups:
- Re: shell state of mind
- From: "Stephen J. Turnbull" <turnbull@example.com>
- Re: shell state of mind
- From: Simon Cozens <simon@example.com>
- References:
- shell state of mind
- From: Viktor Pavlenko <vp@example.com>
- Re: shell state of mind
- From: SL Baur <steve@example.com>
- Re: shell state of mind
- From: "Stephen J. Turnbull" <turnbull@example.com>
Home | Main Index | Thread Index
- Prev by Date: man or Info? Both!! [was: problems with pow( ) in gcc]
- Next by Date: Re: shell state of mind
- Prev by thread: Re: shell state of mind
- Next by thread: Re: shell state of mind
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links