GNU bug report logs - #19377
[PATCH] OS/2 patches

Previous Next

Package: coreutils;

Reported by: KO Myung-Hun <komh78 <at> gmail.com>

Date: Sun, 14 Dec 2014 03:49:05 UTC

Severity: normal

Tags: fixed, patch

Merged with 19375, 19378

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


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

From: KO Myung-Hun <komh78 <at> gmail.com>
To: Pádraig Brady <P <at> draigBrady.com>
Cc: 19377 <at> debbugs.gnu.org
Subject: Re: bug#19378: [PATCH 3/4] cat, chcon, chgrp, chmod, chown, cp, du,
 head: support wildcards on OS/2
Date: Mon, 15 Dec 2014 10:15:56 +0900

Pádraig Brady wrote:
> forcemerge 19378 19377
> stop
> 
> On 14/12/14 03:47, KO Myung-Hun wrote:
>> And ln,ls,mv,rm,tail.
>>
>> * src/cat.c (main): Expand wildcards on OS/2.
>> * src/chcon.c (main): Likewise.
>> * src/chgrp.c (main): Likewise.
>> * src/chmod.c (main): Likewise.
>> * src/chown.c (main): Likewise.
>> * src/cp.c (main): Likewise.
>> * src/du.c (main): Likewise.
>> * src/head.c (main): Likewise.
>> * src/ln.c (main): Likewise.
>> * src/ls.c (main): Likewise.
>> * src/mv.c (main): Likewise.
>> * src/rm.c (main): Likewise.
>> * src/tail.c (main): Likewise.
>>
>> Patches from coreutils 8.8 by Paul Smedley.
> 
>> diff --git a/src/cat.c b/src/cat.c
>> index c7bb7e1..0138114 100644
>> --- a/src/cat.c
>> +++ b/src/cat.c
>> @@ -544,6 +544,10 @@ main (int argc, char **argv)
>>    bool show_tabs = false;
>>    int file_open_mode = O_RDONLY;
>>  
>> +#ifdef __OS2__
>> +  _wildcard (&argc, &argv);
>> +#endif
>> +
> 
> Interesing, the OS/2 shell doesn't doe the globbing.

Ported unixy shells(sh) support it, but OS/2 default shell(CMD) does not.

> I'm wondering about the scalability of this.
> Are there any facilities for dealing with arbitrary numbers
> of files, like with xargs for example?

No. It always processes all files.

> What are the practical limits of the number of files?

It's up to a free memory.

> Does _wildcard() exit with an error in this case?
> 

Call exit(255) with printing an error message.

-- 
KO Myung-Hun

Using Mozilla SeaMonkey 2.7.2
Under OS/2 Warp 4 for Korean with FixPak #15
In VirtualBox v4.1.32 on Intel Core i7-3615QM 2.30GHz with 8GB RAM

Korean OS/2 User Community : http://www.ecomstation.co.kr





This bug report was last modified 6 years and 228 days ago.

Previous Next


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