GNU bug report logs - #8511
Sort error in makefile

Previous Next

Package: coreutils;

Reported by: Harpal Shergill <harpalshergill <at> gmail.com>

Date: Sat, 16 Apr 2011 19:26:02 UTC

Severity: normal

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 8511 in the body.
You can then email your comments to 8511 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#8511; Package coreutils. (Sat, 16 Apr 2011 19:26:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Harpal Shergill <harpalshergill <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Sat, 16 Apr 2011 19:26:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Harpal Shergill <harpalshergill <at> gmail.com>
To: bug-coreutils <at> gnu.org, bug-gzip <at> gnu.org, cygwin <at> cygwin.com
Subject: Sort error in makefile
Date: Sat, 16 Apr 2011 15:09:29 -0400
[Message part 1 (text/plain, inline)]
Hello,

I have  a makefile which does the following:

   1. grab a .gz file from server using wget -- works fine
   2. extract the data from .gz file to new file based on filter using ZCAT
   -- works fine
   3. sort the data from based on specific field and saves the data into a
   new file -- DOES NOT WORK


   - command looks like this: sort -t: -k2n <inputFile> outputFile
   - this command works perfectly on command line of cygwin BUT fails
   through makefile
   - Error says: Input file specified two times.

I tried to search on this online but couldn't get any info. Can you please
help and show me what's wrong? In make file i have this command enclosed
with "`" character. Any feedback on this would be greatly appreciated.

Thank you.

Harpal
[Message part 2 (text/html, inline)]

Information forwarded to owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#8511; Package coreutils. (Sat, 16 Apr 2011 22:46:02 GMT) Full text and rfc822 format available.

Message #8 received at 8511 <at> debbugs.gnu.org (full text, mbox):

From: "Alan Curry" <pacman-cu <at> kosh.dhis.org>
To: harpalshergill <at> gmail.com (Harpal Shergill)
Cc: 8511 <at> debbugs.gnu.org
Subject: Re: bug#8511: Sort error in makefile
Date: Sat, 16 Apr 2011 17:45:00 -0500 (GMT+5)
Harpal Shergill writes:
> 
> Hello,
> 
> I have  a makefile which does the following:
> 
>    1. grab a .gz file from server using wget -- works fine
>    2. extract the data from .gz file to new file based on filter using ZCAT
>    -- works fine
>    3. sort the data from based on specific field and saves the data into a
>    new file -- DOES NOT WORK
> 
> 
>    - command looks like this: sort -t: -k2n <inputFile> outputFile
>    - this command works perfectly on command line of cygwin BUT fails
>    through makefile
>    - Error says: Input file specified two times.
> 
> I tried to search on this online but couldn't get any info. Can you please
> help and show me what's wrong? In make file i have this command enclosed
> with "`" character. Any feedback on this would be greatly appreciated.

Your makefile is running the DOS/Windows sort command instead of the
GNU/cygwin sort. Use a full path like /whatever/cygwin/bin/sort to make it
use the right one.

cygwin's bug, if a bug at all...

-- 
Alan Curry




Reply sent to Jim Meyering <jim <at> meyering.net>:
You have taken responsibility. (Sun, 17 Apr 2011 06:28:01 GMT) Full text and rfc822 format available.

Notification sent to Harpal Shergill <harpalshergill <at> gmail.com>:
bug acknowledged by developer. (Sun, 17 Apr 2011 06:28:01 GMT) Full text and rfc822 format available.

Message #13 received at 8511-done <at> debbugs.gnu.org (full text, mbox):

From: Jim Meyering <jim <at> meyering.net>
To: "Alan Curry" <pacman-cu <at> kosh.dhis.org>
Cc: 8511-done <at> debbugs.gnu.org, Harpal Shergill <harpalshergill <at> gmail.com>
Subject: Re: bug#8511: Sort error in makefile
Date: Sun, 17 Apr 2011 08:27:17 +0200
tags 8511 notabug
close 8511
thanks

Alan Curry wrote:
...
> Your makefile is running the DOS/Windows sort command instead of the
> GNU/cygwin sort. Use a full path like /whatever/cygwin/bin/sort to make it
> use the right one.
>
> cygwin's bug, if a bug at all...

Hi Alan,
Thanks for replying.
I'm closing this issue.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 15 May 2011 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 14 years and 92 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.