Re: [GnuWin32-Users] Fwd: sed produces strange files

2012-06-14 Thread Charles Calvert
On 6/14/2012 3:09 AM, Borut Ražem wrote:

[snip]

> I propose to submit the requet (even better: prepare the patch) to the
> original GNU sed developers. If they'll fix it the problem will be solved
> once for ever. In other case the fix has to be done on GNUWIN32 port and
> repeated for each new release.

This is an excellent idea.

-- 
Charles Calvert


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users


Re: [GnuWin32-Users] sed produces strange files

2012-06-12 Thread Charles Calvert
On 6/12/2012 12:24 PM, Anton Shepelev wrote:
> 
> I  have  a  problem  when  using  sed  with  the  -i
> (--in-place) option.  Upon processing a file, a  new
> file named like sedYNFdj6 appears in the working di-
> rectory and contains an exact copy of the  resulting
> file.

Looks like a temporary file that isn't being cleaned up.

-- 
Charles Calvert


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users


Re: [GnuWin32-Users] recursive search using grep and find

2012-01-10 Thread Charles Calvert
On 1/10/2012 8:33 AM, Weiyu Yi wrote:
> 
> I have just installed gnuutils(find and grep) in my winxp(32) system.
> 
> when I try to find some files containing some certain string
> recursively, something strange happens
> 
> i.e. grep -l 'something' -R *

If you're using the WinXP command shell, this should be:

grep -rl "something" *.*

If you're using PowerShell, bash or zsh, it should be:

grep -rl 'something' *

-- 
Charles Calvert


--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
___
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users


[GnuWin32-Users] Current tar version?

2011-08-28 Thread Charles Calvert
All,

The tar version supplied by the project 
(http://gnuwin32.sourceforge.net/packages/gtar.htm) is 1.13, which is 
from 1999.  If you check the Gnu FTP site (ftp://ftp.gnu.org/gnu/tar/), 
there have been 13 releases of tar in the 12 years since then.

Why is the project supplying such an old version of tar instead of a 
current one?  There have been many features and bug fixes in those 13 
new releases.

-- 
Charles


--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
___
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users


Re: [GnuWin32-Users] Awk error

2009-10-28 Thread Charles Calvert
On 10/28/2009 6:13 AM, Keith MARSHALL wrote:
> 
> Charles Calvert wrote:
>> Since we're engaging in a little friendly pedantry...
> 
> :-)
> 
>> On 10/27/2009 6:30 AM, Keith MARSHALL wrote:
>>
>> [attributions added back in]
> 
> This utterly abysmal mail client, which my employer insists I use, messes
> them up horrendously; sorry about that.

I checked the headers and see that you're being forced to use Lotus
Notes, which is the only mail client that does a worse job than Outlook.
 You have my sympathies and you apology is absolutely accepted.

>>> On 10/23/2009 10:56 AM, Charles Calvert wrote:
>>>> On 10/23/2009 10:31 AM, bradda...@comcast.net wrote:
>>>>> I can't seem to get awk to work.
>>>>> Here is the command line I'm trying to use:
>>>>>
>>>>> svn ls -R | awk "print $1"
>>>> Try:
>>>>
>>>>svn ls -R | awk "{print $1}"
>>>>
>>>> The default rule must be enclosed in braces.
>>>
>>> Actually, this is not strictly so; while your suggested remedy
>>> is correct in this instance, your explanation is wrong.
>>>
>>> An awk "rule", (usually called a "statement",
>>
>> Most of my understanding of awk comes from "Effective awk Programming"
>> and "sed & awk" in which Mr. Robbins tends to use the word "rule" rather
>> than the word "statement", so I think that "usually" depends on the
>> context.  I would agree that "statement" has a more well defined meaning
>> in a programming context, but plenty of programming languages have their
>> little variations on terminology.
> 
> I didn't mean to impugn your use of the word "rule"; just introducing
> what I believe to be the more common terminology, esp. in the formal
> documentation of awk,

Understood.  I wasn't sure of your intent there, so thanks for the
clarification.

(where, FTR, my "match-criterion" is usually
> referred to as a "pattern"; see:
>http://www.opengroup.org/onlinepubs/009695399/utilities/awk.html ).

Thanks for the link.

[snip my suggested remedy]

> I thought your wording may have been potentially confusing; you stated
> that "the default *rule* must be enclosed in braces" (my emphasis), but
> if we accept, in your terminology, that "rule" is synonymous with the
> "statement" of mine, then that would be incorrect: it is only the
> *action* part of the "rule" which must be enclosed in braces,

Yes, I my choice of words was imprecise and could be easily
misinterpreted.  Thanks for pointing that out.

[snip]

[regarding my use of the term "default rule"]

>> I should have said the "empty pattern"[1], but my mind came up with
>> "default" instead.
> 
> Ah!  With that qualification, your analysis becomes correct, if not as
> clearly expressed as it might have been.

Amazing how referring to documentation to get correct terms can help. :)

[snip rest]

-- 
Charles


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users


Re: [GnuWin32-Users] Awk error

2009-10-27 Thread Charles Calvert
Since we're engaging in a little friendly pedantry...

On 10/27/2009 6:30 AM, Keith MARSHALL wrote:

[attributions added back in]

> On 10/23/2009 10:56 AM, Charles Calvert wrote:

>> On 10/23/2009 10:31 AM, bradda...@comcast.net wrote:
> 
>>> I can't seem to get awk to work.
>>> Here is the command line I'm trying to use:
>>>
>>> svn ls -R | awk "print $1"
>> Try:
>>
>>svn ls -R | awk "{print $1}"
>>
>> The default rule must be enclosed in braces.
> 
> Actually, this is not strictly so; while your suggested remedy
> is correct in this instance, your explanation is wrong.
> 
> An awk "rule", (usually called a "statement",

Most of my understanding of awk comes from "Effective awk Programming"
and "sed & awk" in which Mr. Robbins tends to use the word "rule" rather
than the word "statement", so I think that "usually" depends on the
context.  I would agree that "statement" has a more well defined meaning
in a programming context, but plenty of programming languages have their
little variations on terminology.

> for it is a part
> of an awk "script" which itself comprises one or more of such
> statements), comprises two parts:
> 
>   match-criterion { action [; ...] }
> 
> It's the *action* part of the statement which must be enclosed
> in braces, and this applies to *all* statements;

I did not imply the opposite.  Brad failed to enclose the action in
braces and I stated that he needed to do so.  I don't see how one can
reasonably conclude that this implies that braces should not enclose any
other action.  Perhaps I have misunderstood your use of emphasis in this
case?

> (in fact, if any statement is given at all, there is no applicable
> concept of a "default"; any statement may omit either the
> match-criterion part, which then defaults to matching *every* input
> line, or it may omit the action part, which then defaults to echoing
> the entire matched input line to the output stream.

I should have said the "empty pattern"[1], but my mind came up with
"default" instead.  Thanks for the clarification.

[snip]

[1] "Effective awk Programming", third edition, p. 109.
-- 
Charles


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users


Re: [GnuWin32-Users] Awk error

2009-10-23 Thread Charles Calvert
On 10/23/2009 10:31 AM, bradda...@comcast.net wrote:
> I can't seem to get awk to work. Here is the command line I'm trying to use: 
> 
> svn ls -R | awk "print $1" 

Try:

svn ls -R | awk "{print $1}"

The default rule must be enclosed in braces.

-- 
Charles


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users


Re: [GnuWin32-Users] Pcre static library

2007-07-09 Thread Charles Calvert
On 7/7/2007 3:25 AM, tuitfun wrote:
> i think normally Windows just look for dll
> files in the current directory and in C:\WINDOWS\system32, right?

>From the documentation for the Win32 API function LoadLibrary (which is
used to load DLLs):

When no path is specified, the function searches for loaded modules
whose base name matches the base name of the module to be loaded. If the
name matches, the load succeeds. Otherwise, the function searches for
the file in the following sequence:


1. The directory from which the application loaded.
2. The current directory.
3. The system directory. Use the GetSystemDirectory function to get the
path of this directory.
4. The 16-bit system directory. There is no function that obtains the
path of this directory, but it is searched.
Windows Me/98/95:  This directory does not exist.
5. The Windows directory. Use the GetWindowsDirectory function to get
the path of this directory.
6. The directories that are listed in the PATH environment variable.

Windows Server 2003, Windows XP SP1:  The default value of
HKLM\System\CurrentControlSet\Control\Session Manager\SafeDllSearchMode
is 1 (current directory is searched after the system and Windows
directories).

Windows XP:  If HKLM\System\CurrentControlSet\Control\Session
Manager\SafeDllSearchMode is 1, the current directory is searched after
the system and Windows directories, but before the directories in the
PATH environment variable. The default value is 0 (current directory is
searched before the system and Windows directories).

-- 
Charles



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users


Re: [GnuWin32-Users] GSL and VB6

2005-06-25 Thread Charles Calvert

At 02:42 PM 6/25/2005 , Rui Fernandes wrote:
I keep trying to use GSL's dlls with VB6. I'm declaring some test 
functions like this


Public Declare Function gsl_acosh Lib "libgsl.dll" (ByVal x As Double)

but it gives the error: "Bad DLL calling convention" ( error 49 ) when I 
call it like


Dim a As Double
a = gsl_acosh(0.2)

Does anyone knows what is wrong here? The debug gives the error on the 
"a=gsl_...". It finds the function, but it doesn't work.


Most likely the exported functions have the cdecl calling convention.  VB 
expects the stdcall calling convention.  If the DLL doesn't export stdcall 
versions of the function, you could do one of two things:


1. Modify the source to change the calling convention of the exported 
functions and recompile a custom version for your own use.


2. Modify the source to add stdcall wrappers for the functions you need.

3. Write a separate DLL that exports stdcall functions and acts as a proxy 
for libgsl.dll.




---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users


Re: [GnuWin32-Users] [gnuwin32 - Help] GSL: Unable to run on Visual C++ 6.0

2005-03-01 Thread Charles Calvert
At 11:42 PM 2/27/2005 , SourceForge.net wrote:
We have a problem.  We are trying to use GSL (for calculating eigen values).
We have installed the windows version of it.  The library gets compiled and
linked with the documentation's test program, but the program gives an access
violation as soon as any function of the library is called.
Are you sure that you're using the correct calling convention (cdecl vs. 
stdcall)?

Chip
---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users


[GnuWin32-Users] Test message

2003-11-18 Thread Charles Calvert
Sorry for the test, but I haven't seen any traffic in several weeks.



---
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
___
GnuWin32-Users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users