lkml.org 
[lkml]   [2005]   [Apr]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: more git updates..
    Date
    From

    Hi Linus,

    > Btw, the NUL-termination makes this really easy to use even in shell
    > scripts, ie you can do
    >
    > diff-tree <sha1> <sha1> | xargs -0 do_something
    >
    > and you'll get each line as one nice argument to your "do_something"
    > script. So a do_diff could be based on something like
    >
    > #!/bin/sh

    Watch out for when xargs invokes do_something more than once and the `<'
    is parsed by a different one than the `>'. A `while read ...; do ...
    done' would avoid that, but wouldn't like the NULs instead of LFs.

    Cheers,


    Ralph.

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-04-10 01:31    [W:8.317 / U:0.040 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site