Hello world loop feature as diff

View: New views
2 Messages — Rating Filter:   Alert me  

Hello world loop feature as diff

by Dean Menezes :: Rate this Message:

| View Threaded | Show Only this Message

I think the full attachment I sent earlier might have been a previous version so I am resubmitting it as a diff just in case:

4c4
<    2006, 2007, 2008 Free Software Foundation, Inc.
---
>    2006, 2007, 2008, 2009 Free Software Foundation, Inc.
31a32
>   { "loop", no_argument, NULL, 'l' },
48c49
<   int lose = 0;
---
>   int lose = 0, loop = 0;
69c70
<   while ((optc = getopt_long (argc, argv, "g:hntv", longopts, NULL)) != -1)
---
>   while ((optc = getopt_long (argc, argv, "g:hntvl", longopts, NULL)) != -1)
90a92,94
>       case 'l':
>       loop = 1;
>       break;
107a112,113
>   do
>     {
110d115
<
123d127
<
135c139
<
---
>     } while(loop);
171c175,176
<   -g, --greeting=TEXT     use TEXT as the greeting message\n"), stdout);
---
>   -g, --greeting=TEXT     use TEXT as the greeting message\n\
>   -l, --loop              repeatedly display greeting message\n"), stdout);
202c207
<               "2008");
---
>               "2009");



     



Re: Hello world loop feature as diff

by Karl Berry :: Rate this Message:

| View Threaded | Show Only this Message

Hi,

    I think the full attachment I sent earlier might have been a
    previous version so I am resubmitting it as a diff just in case:

Thanks for writing.

    I have bumped the copyright date.  I have also implemented a loop
    feature, which is common to many hello world programs, but which GNU
    hello lacks.

Is it so common?  I admit I've never come across this in a hello,world
before.  Kind of seems like feature creep to me :).  We already have
"yes" to output strings ...

Best,
Karl