Points well taken ! That
is the ground reality of the situation in Bangladesh.
There is the existing defense treaty.
India could still formally ask for Bangladesh's participation in a conflict and Bangladesh's refusal or a stance of neutrality, would be viewed as a violation of the treaty and a hostile act.
Will draw a close parallel to a situation, concerning India, Pakistan, and the now defunct Soviet Union.
The treaty between Bangladesh and India is closely modeled on a very similar treaty between the Soviet Union and India signed shortly before the Indian involvement in the Civil War that led to the independence of Bangladesh.
India invoked the treaty with the Soviet Union seeking support, to deter the intervention of the USA on the side of Pakistan in Bangladesh, The Soviet Union did offer total diplomatic (UN veto) , and military support including the mobilization of its own naval assets.
The tables were turned in 1979-80 when the Soviet Union planned to invade Afghanistan. The Soviets well knew that controlling Afghanistan, without controlling Pakistan was an impossibility. The Soviet Union was distracted with a NATO build up in Europe,
and a Chinese build up on it's borders. The Soviet Union knew that it would not be possible to deploy enough forces to quickly overrun Pakistan, though a punishing air offensive could be maintained to temporarily deter Pakistani support to the Afghan resistance.
Getting India into the act was vital. Pakistan would not survive a simultaneous Indian and Soviet invasion. Pakistan had no nuclear weapons then and the Soviet Union was fully prepared to use all it's assets.
The Soviet Union called upon the Indian government headed by Morarji Desai under the terms of the treaty to consider initiating action on Pakistan's eastern border.
Morarji Desai was a pacifist and "Gandhian " and he refused. Had Indira Gandhi been in power with Natwar Singh as foreign minister there was a distinct chance of an anti-Pakistan coalition possibly involving Bangladesh as well ( because the Treaty could have had a chain effect). Morarji Desai declined, and even though his government was toppled due to internal political conflict ( which the Soviet Union helped!), his successor Charan Singh maintained the neutrality. The Soviet Union went ahead with the invasion carrying out air strikes on refugee camps along the Pakistan Afghan border but not directly attacking Pakistan's military assets.,The Soviet Union initially enjoyed complete air superiority and because of initial military successes in stopping the Afghan Mujahideen the Soviets did not view India's betrayal that seriously. They preferred to wait till a more Soviet friendly government was in power in India.
Indira Gandhi was voted back to power in 1981 but got too heavily involved in a Sikh insurgency in Punjab to risk a war with Pakistan.,
The rest is known...
India is unlikely to make the same mistake as the Soviet Union and will invoke the treaty ; assuming there is an unfriendly government in power in Bangladesh. A very remote possibility given the complete dominance of politicians in India's "pocket" and control of Bangladesh's mass media.
As for the young generation.
Very few in Bangladesh's new generation have a balanced view of Pakistan or even know much about the country.