On Thursday 15 September 2005 09:46, you wrote: > tags +pending > thanks > > On Thu, Jul 28, 2005 at 03:16:12AM +0100, Paul Brook wrote: > > Autossh doesn't handle -- properly when parsing commandling options. It > > checks for and eats the first --, but it still parses the subsequent > > commandline arguments. > > > > Attached patch fixes this. Any arguemnts after -- are passed verbaitum > > to ssh. This allows use of the ssh -M option when using autossh. > > thanks for the patch, while passing -M to ssh makes sense, it doesn't with > -f since the command will be launched with no controlling ttys (in case of > interactive programs) and will be relaunched whenever autossh detects > connection failure, and this is not good :) > This is the first reason I can think of, please feel free to provide > another use case where using autossh -- -f ssh <host> <command> can be > useful
I don't see how this is relevant. It's standard behaviour for -- to disable parsing of subsequent "-" options, and I've show a case where this is useful. The current behaviour is just plain broken. May patch makes the behaviour consistent with pretty much every other commandline utility you could care to mention. I agree that "-- -f" isn't useful. However I don't think that's reason enough to reject the patch. There are many other ways for a dumb user to shoot themselves in the foot, why bother about this particular one? Paul -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]