Hi Dave,
Thank you very much for the quick response! I fully agree that we should
follow the documentation and put the option flags first. But couple
individuals I work with think that, if it works for Linux, it should work for
everything else. Your answer helps me tremendously.
Thanks again,
Alan
-----Original Message-----
From: [EMAIL PROTECTED] on behalf of Dave Shield
Sent: Tue 12/19/2006 6:46 PM
To: [EMAIL PROTECTED]
Cc: [email protected]
Subject: Re: Difference in Parsing Command-line arguments under Solaris vs.
Linux
On 19/12/06, Alan Cheng <[EMAIL PROTECTED]> wrote:
> Why can't we put hostname as the 1st command-line argument under Solaris?
I'd actually ask the opposite question - how come this works under Linux?
The documentation specifies that option flags should come *before* the
positional parameters (hostname, OIDs, etc) - and this is how I'd expect
it to work.
I suggest that putting the hostname first is broken, and shouldn't be
accepted on *any* system.
Dave
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders