'Illegal' to grant bail for a limited duration after court concludes that accused is entitled for release: SC?

'Illegal' to grant bail for a limited duration after court concludes that accused is entitled for release: SC?