Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #90085

Re: how to execute cprog1.c

From Keith Thompson <kst-u@mib.org>
Newsgroups comp.lang.c
Subject Re: how to execute cprog1.c
Date 2016-07-06 08:40 -0700
Organization None to speak of
Message-ID <lntwg2n5an.fsf@kst-u.example.com> (permalink)
References <dtphk9F2uacU1@mid.individual.net> <lnfurroh2o.fsf@kst-u.example.com> <du41ejFh2t6U1@mid.individual.net>

Show all headers | View raw


Cal Dershowitz <cal@example.invalid> writes:
> On 07/02/2016 02:39 PM, Keith Thompson wrote:
>> Cal Dershowitz <Cal@example.invalid> writes:
>
>> That repo contains a one-line README, a sizable file called
>> baseline_mod_times.txt that appears to contain some program output,
>> and a C source file cprog1.c, with the following contents:
>
> You use the word "repo."

Yes, I do.  If you're expecting that statement to elicit more
information, you'll have to give us some idea what you're looking
for.  Asking a question would be a good start.  ("Repo" is short for
"repository" if that's what you're wondering.)

>> Downloading the repo from GitHub is not difficult.  I used
>>
>>      git clone https://github.com/TBlazer66/island
>>
>> but other methods are available, and are documented on github.com
>> and elsewhere.
>
> $ pwd
> /home/fred/Downloads/island-master
> $ git clone https://github.com/TBlazer66/island
> Cloning into 'island'...
> remote: Counting objects: 7, done.
> remote: Compressing objects: 100% (7/7), done.
> remote: Total 7 (delta 0), reused 4 (delta 0), pack-reused 0
> Unpacking objects: 100% (7/7), done.
> Checking connectivity... done.
> $ ls
> baseline_mod_times.txt  cprog1.c  island  README
> $ cd island/
> $ ls
> baseline_mod_times.txt  cprog1.c  README
> $ cc cprog1.c   -o cprog1
> $ ./cprog1
> Reading this line implies execution of c source initiated by perl.
> $

It looks like you had already cloned the "island" repository, or perhaps
obtained a copy by some other means.  Now you've cloned it again into a
subdirectory.

> wow, well the output is false, but I have new island. I think of C as a 
> stygian witch who needed a child syntax like perl to tell her where she 
> is. But where's the compilers around here?

What?  Are you asking us where the compilers are on your system?  How do
you expect us to have any idea?

>> Nothing in the repo appears to have anything to do with Perl other
>> than mentioning it in the output of cprog1.  I see no connection
>> among any of the three files in the repo.  Whatever you're trying
>> to learn, this repo is probably not a good starting point.
>
> It's primarily a perl learning exercise. Of course, perl can't get out 
> of bed without C, so there is that connection, some say a child 
> syntax...I'll try to leave those esoteric scraps for downthread after 
> I've gotten a couple more useful things done.

Perl is implemented in C, its syntax is superficially similar,
and there are facilities for calling C code from Perl.  But it's
still a distinct language, and you can learn Perl by itself.

But not from that particular repository, which has no Perl content.
And not here; this is comp.lang.c.

[...]

-- 
Keith Thompson (The_Other_Keith) kst-u@mib.org  <http://www.ghoti.net/~kst>
Working, but not speaking, for JetHead Development, Inc.
"We must do something.  This is something.  Therefore, we must do this."
    -- Antony Jay and Jonathan Lynn, "Yes Minister"

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

how to execute cprog1.c Cal Dershowitz <Cal@example.invalid> - 2016-07-02 02:59 -0700
  Re: how to execute cprog1.c Luuk <luuk@invalid.lan> - 2016-07-02 12:21 +0200
  Re: how to execute cprog1.c "James R. Kuyper" <jameskuyper@verizon.net> - 2016-07-02 11:45 -0400
    Re: how to execute cprog1.c Cal Dershowitz <cal@example.invalid> - 2016-07-06 01:39 -0700
      Re: how to execute cprog1.c James Kuyper <jameskuyper@verizon.net> - 2016-07-06 11:16 -0400
        Re: how to execute cprog1.c Cal Dershowitz <cal@example.invalid> - 2016-07-07 23:00 -0700
          Re: how to execute cprog1.c luser droog <luser.droog@gmail.com> - 2016-07-07 23:30 -0700
            Re: how to execute cprog1.c Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-07-08 10:09 +0100
            Re: how to execute cprog1.c Cal Dershowitz <cal@example.invalid> - 2016-07-08 03:34 -0700
            Re: how to execute cprog1.c gazelle@shell.xmission.com (Kenny McCormack) - 2016-07-08 10:57 +0000
          Re: how to execute cprog1.c Udyant Wig <udyantw@gmail.com> - 2016-07-08 15:14 +0530
  Re: how to execute cprog1.c Keith Thompson <kst-u@mib.org> - 2016-07-02 14:39 -0700
    Re: how to execute cprog1.c Cal Dershowitz <cal@example.invalid> - 2016-07-06 02:30 -0700
      Re: how to execute cprog1.c Keith Thompson <kst-u@mib.org> - 2016-07-06 08:40 -0700
        Re: how to execute cprog1.c Cal Dershowitz <cal@example.invalid> - 2016-07-11 23:33 -0700
  Re: how to execute cprog1.c Real Troll <real.troll@trolls.com> - 2016-07-06 18:38 +0100
    Re: how to execute cprog1.c raltbos@xs4all.nl (Richard Bos) - 2016-07-06 19:57 +0000

csiph-web