[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: [PATCH] Allow - as argument in KCmdLineArgs for stdin
From: Waldo Bastian <bastian () kde ! org>
Date: 2002-01-22 19:49:43
[Download RAW message or body]
On Monday 21 January 2002 06:05 pm, Otto Bruggeman wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> i hacked a bit in kcmdlineargs to add support for - as an argument on the
> commandline. It is used pretty often in unix apps for stdin and i could
> really use if for kompare as a small new feature (wont be committed for
> KDE 3.0, dont worry dirk :) to allow cvs diff | kompare -. I know about
> the workaround of adding '-- -' to the commandline to get - as an argument
> but this seems a bit better.
>
> So here is the patch, i know it may be a bit hackish but please comment on
> it. if you have or know of a better way please let me know or implement
> it yourself.
I think we can treat '-' as an argument unconditionally. E.g. "grep - file"
treats the '-' as the search-expression, while in "grep -z file" it treats it
as an option. No need for this extra &.
I'll fix it.
Cheers,
Waldo
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic