Hi, usualy, in the unix world, while processing command line options, unix programs keep the last option value, overriding config file options or previous command line ones, unfortunately, ssh only keep the first option processed. ex. : ssh -o BatchMode=no -o BatchMode=yes host cmd arg... the unix common expected behaviour is to have BatchMode = true, while ssh says BatchMode = false. how about to change the ssh command line processing bahaviour ? Regards, Cyrille Lefevre -- mailto:Cyrille.Lefevre-lists at laposte.net
On Thu, 12 May 2011, Cyrille Lefevre wrote:> ssh -o BatchMode=no -o BatchMode=yes host cmd arg... > > the unix common expected behaviour is to have BatchMode = true, while > ssh says BatchMode = false. > > how about to change the ssh command line processing bahaviour ?No. The command-line behaviour is consistent with the configuration file parsing logic and is widely depended upon. The "common expected behaviour" is hardly universal; while many programs do it, others will detect the inconsistency fatally error and some will do the wrong thing. -d