[Issue 423] New: dmd ignores empty commandline arguments

Walter Bright newshound at digitalmars.com
Tue Oct 10 21:04:00 PDT 2006

Derek Parnell wrote:
> The strings on a command line contain information even if one of them is
> empty - at the very least it is a placeholder. 

We could argue this till the cows come home. But the current behavior:

1) Is a result of the Digital Mars C startup code
2) It's been that way for 20+ years
3) It's embedded into every DM tool and every command line program 
created with DM

Nobody has ever complained about it or even commented on it before. I 
doubt anyone has noticed it - I certainly haven't, and I've used this 
stuff probably more than anyone <g>.

Linux, however, does behave the way you suggest - at least the default 
shell I use does it that way. On the other hand, I've never seen any 
linux utility that made any mention in its documentation about having 
any meaning assigned to blank arguments. Trying it on a few just gives 

In other words, I don't think it's worth arguing about or changing.

More information about the Digitalmars-d-bugs mailing list