New modes for cygpath that terminate path with null byte, nothing

Corinna Vinschen corinna-cygwin@cygwin.com
Fri Jul 27 09:33:00 GMT 2012


Hi Daniel,

On Jul 27 01:08, Daniel Colascione wrote:
> I wrote this patch because I often write this:
> 
> $ cygpath -aw foo > /dev/clipboard
> 
> Today, cygpath always appends a newline to the information in the
> clipboard, which is annoying when trying to paste into a program that
> interprets newlines specially. This patch implements two new options:
> -0/--null and -n/--no-newline. The former separates all paths output by
> cygpath with a null byte; the latter separates them with nothing at all.
> With -n, my example above works more smoothly and pastes don't include a
> newline.

Thanks for the patch.  It looks good and is a nice idea.  What's missing
is a ChangeLog entry (just the plain entry, not as part of the patch
itself) and briefly adding the new options to utils.sgml.

There's just the problem of the copyright assignment.  If you want to
provide a non-obvious patch, or if the patch adds new functionality, we
need a copyright assignment from you.  Please see the section "Before
you get started" on http://cygwin.com/contrib.html and the assignment
form http://cygwin.com/assign.txt

As soon as my manager has the assignment, I'll apply your patch.


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat



More information about the Cygwin-patches mailing list