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 t= he > 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 argum= ent > 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 - fil= e"=20 treats the '-' as the search-expression, while in "grep -z file" it treat= s it=20 as an option. No need for this extra &.=20 I'll fix it. Cheers, Waldo