India and Bangladesh on Saturday signed an agreement to simplify their 4,000-km (2,500-mile) border and clarify the identities of 52,000 living in enclaves, over four decades after the neighbours first tried to untangle complex territorial rights set down in 1713.