[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#19377: bug#19378: [PATCH 3/4] cat, chcon, chgrp, chmod, chown, cp, d
From: |
Pádraig Brady |
Subject: |
bug#19377: bug#19378: [PATCH 3/4] cat, chcon, chgrp, chmod, chown, cp, du, head: support wildcards on OS/2 |
Date: |
Mon, 15 Dec 2014 08:57:15 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 |
On 15/12/14 01:15, KO Myung-Hun wrote:
>
>
> 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.
>
While the adjustment is small, it would be better to avoid the ifdef in all
programs.
I think there is a -Zwildcard option to auto enable for all programs?
Also is there an option to disable this expansion at runtime
(which should be documented if available).
For example to allow deleting a file called '*', which seems like a more likely
occurrence on this platform.
thanks,
Pádraig.
- bug#19375: closed (Re: bug#19377: bug#19378: [PATCH 3/4] cat, chcon, chgrp, chmod, chown, cp, du, head: support wildcards on OS/2), (continued)
- Message not available
- bug#19375: closed (Re: bug#19377: bug#19378: [PATCH 3/4] cat, chcon, chgrp, chmod, chown, cp, du, head: support wildcards on OS/2), KO Myung-Hun, 2014/12/18
- bug#19375: closed (Re: bug#19377: bug#19378: [PATCH 3/4] cat, chcon, chgrp, chmod, chown, cp, du, head: support wildcards on OS/2), Pádraig Brady, 2014/12/18
- bug#19375: closed (Re: bug#19377: bug#19378: [PATCH 3/4] cat, chcon, chgrp, chmod, chown, cp, du, head: support wildcards on OS/2), KO Myung-Hun, 2014/12/18
bug#19376: [PATCH 4/4] build: use -pi.bak instead of -pi, KO Myung-Hun, 2014/12/14
bug#19378: [PATCH 3/4] cat, chcon, chgrp, chmod, chown, cp, du, head: support wildcards on OS/2, KO Myung-Hun, 2014/12/14
- bug#19377: bug#19378: [PATCH 3/4] cat, chcon, chgrp, chmod, chown, cp, du, head: support wildcards on OS/2, Pádraig Brady, 2014/12/14
- bug#19377: bug#19378: [PATCH 3/4] cat, chcon, chgrp, chmod, chown, cp, du, head: support wildcards on OS/2, KO Myung-Hun, 2014/12/14
- bug#19377: bug#19378: [PATCH 3/4] cat, chcon, chgrp, chmod, chown, cp, du, head: support wildcards on OS/2,
Pádraig Brady <=
- bug#19377: bug#19378: [PATCH 3/4] cat, chcon, chgrp, chmod, chown, cp, du, head: support wildcards on OS/2, Jim Meyering, 2014/12/15
- bug#19377: bug#19378: [PATCH 3/4] cat, chcon, chgrp, chmod, chown, cp, du, head: support wildcards on OS/2, KO Myung-Hun, 2014/12/15
- bug#19377: bug#19378: [PATCH 3/4] cat, chcon, chgrp, chmod, chown, cp, du, head: support wildcards on OS/2, Paul Eggert, 2014/12/15
- bug#19377: bug#19378: [PATCH 3/4] cat, chcon, chgrp, chmod, chown, cp, du, head: support wildcards on OS/2, KO Myung-Hun, 2014/12/15
- bug#19377: bug#19378: [PATCH 3/4] cat, chcon, chgrp, chmod, chown, cp, du, head: support wildcards on OS/2, Jim Meyering, 2014/12/15
- bug#19377: bug#19378: [PATCH 3/4] cat, chcon, chgrp, chmod, chown, cp, du, head: support wildcards on OS/2, KO Myung-Hun, 2014/12/16
- bug#19377: bug#19378: [PATCH 3/4] cat, chcon, chgrp, chmod, chown, cp, du, head: support wildcards on OS/2, Jim Meyering, 2014/12/18
bug#19377: bug#19378: [PATCH 3/4] cat, chcon, chgrp, chmod, chown, cp, du, head: support wildcards on OS/2, KO Myung-Hun, 2014/12/15
- Prev by Date:
bug#19377: bug#19376: [PATCH 4/4] build: use -pi.bak instead of -pi
- Next by Date:
bug#19377: bug#19378: [PATCH 3/4] cat, chcon, chgrp, chmod, chown, cp, du, head: support wildcards on OS/2
- Previous by thread:
bug#19377: bug#19378: [PATCH 3/4] cat, chcon, chgrp, chmod, chown, cp, du, head: support wildcards on OS/2
- Next by thread:
bug#19377: bug#19378: [PATCH 3/4] cat, chcon, chgrp, chmod, chown, cp, du, head: support wildcards on OS/2
- Index(es):