Re: locale -uU in ~/.profile

2014-10-01 Thread Achim Gratz
Eric Blake redhat.com> writes: > Sounds like cygwin's base-files should be updated to guard > cygwin-specific .profile contents to only occur when uname says it is > running on cygwin. I'm sure the maintainer would love patches... I'm listening... although default ~/.profile only gets installed

Re: Problem with update-xonotic.bat

2014-10-01 Thread Marco Atzeri
On 01/10/2014 06:15, Robin Persaud wrote: Hello, I encountered the following error after running “update-xonotic.bat”: there is no xonotic in cygwin. So I assume you downloaded something from http://www.xonotic.org/ sent 778281 bytes received 525292843 bytes 530046.47 bytes/sec total s

Re: command line smtp client / command line email?

2014-10-01 Thread V.99
On 28.9.2014 19:20, Marilo wrote: what are my options for a command line smtp client in cygwin? Hi Marilo. Have You tried sendEmail ? (http://caspian.dotconf.net/menu/Software/SendEmail/) It is not a Cygwin package but perl script (and compiled Windows executable). I use it for sending logs

Re: package update for cygwin CMake

2014-10-01 Thread Marco Atzeri
On 01/10/2014 04:42, Tony Kelman wrote: When you do so, please be sure to include the patchset: http://sf.net/p/cygwin-ports/cmake These patches are required for a usable cmake on Cygwin. FYI, I updated Yaakov's patches for 3.0.2 here https://github.com/tkelman/cygwin-cmake Although I never g

[ANNOUNCEMENT] New package: tinyxml2-2.1.0

2014-10-01 Thread David Stacey
Version 2.1.0-1 of tinyxml2 has been uploaded. On Cygwin, tinyxml2 will be a pre-requisite for future builds of cppcheck. DESCRIPTION === TinyXML-2 is a simple, small, efficient, C++ XML parser that can be easily integrated into other programs. It uses a Document Object Model (DOM), mea

Direct/efficient way to chop off trailing \n

2014-10-01 Thread Paul . Domaskis
Running bash in a Windows environment, I often find the need to generate a full Windows path to a file so that I can access the file from a Windows app. If I use cygpath -aw TheFile > /dev/clipboard I can paste into the Windows file-opener without browsing. Also, I don't need to mouse around

Re: Direct/efficient way to chop off trailing \n

2014-10-01 Thread Gary Johnson
On 2014-10-01, Paul.Domaskis wrote: > Running bash in a Windows environment, I often find the need to > generate a full Windows path to a file so that I can access the file > from a Windows app. > > If I use > >cygpath -aw TheFile > /dev/clipboard > > I can paste into the Windows file-opener

Re: Direct/efficient way to chop off trailing \n

2014-10-01 Thread Jim Garrison
On 10/1/2014 2:52 PM, Paul.Domaskis wrote: > Running bash in a Windows environment, I often find the need to > generate a full Windows path to a file so that I can access the file > from a Windows app. [snip] >... but it does remove the trailing \n which chokes up > Windows. Sounds like cygpath ne

Re: Direct/efficient way to chop off trailing \n

2014-10-01 Thread Keith Christian
This function echoes the present directory to the clipboard, so that I don't have to enter the path manually. I use this function in a script that sources when a bash shell is started. Also echoes the path to the terminal for verification. Handy for pasting directly into windows file dialogs. fu

Re: Direct/efficient way to chop off trailing \n

2014-10-01 Thread Keith Christian
Looks like the cygpath line was broken in two, and the closing brace isn't visibile when reading in Gmail. Readers take note of that. On Wed, Oct 1, 2014 at 4:54 PM, Keith Christian wrote: > This function echoes the present directory to the clipboard, so that I > don't have to enter the path man

Re: Direct/efficient way to chop off trailing \n

2014-10-01 Thread Gary Johnson
On 2014-10-01, Jim Garrison wrote: > On 10/1/2014 2:52 PM, Paul.Domaskis wrote: > > Running bash in a Windows environment, I often find the need to > > generate a full Windows path to a file so that I can access the file > > from a Windows app. > [snip] > >... but it does remove the trailing \n whi

Re: Direct/efficient way to chop off trailing \n

2014-10-01 Thread Paul . Domaskis
On 2014-10-01, Paul.Domaskis wrote: > cygpath -aw foo | tr -d '\n' > /dev/clipboard Gary Johnson wrote: > Define a function in your ~/.bashrc. > > winclip() > { > cygpath -aw "$ " | tr -d '\n' > /dev/clipboard > } > > Then just execute > > winclip TheFile Jim Garrison

Re: Direct/efficient way to chop off trailing \n

2014-10-01 Thread Andrey Repin
Greetings, Paul.Domaskis! > Jim, I think you're right. cygpath could benefit a lot from a -n > switch to suppress the new line. From google, however, it's actually > just li'l olde me that would benefit as no one else seems to have the > want for it. That's just happened to be opposite case of

Re: Direct/efficient way to chop off trailing \n

2014-10-01 Thread Eliot Moss
You could write my solution as: echo -n `cygpath -aw foo`>/dev/clipboard though the ` (backtick) notation is deprecated these days and $(...) is described as preferred. But for many little things like these I write bash functions (or aliases, when they work, which they don't here). The echo so

Re: Direct/efficient way to chop off trailing \n

2014-10-01 Thread Eric Blake
On 10/01/2014 08:25 PM, Eliot Moss wrote: > You could write my solution as: > > echo -n `cygpath -aw foo`>/dev/clipboard 'echo -n' is not portable (in fact, you can disable it in bash, and it may misbehave if cygpath outputs a leading - or contains any \); it's better to use 'printf' for that pur