right_then
while shorting {selling } in cash segment ,one is required to close the position{buy} in the same day.even if not done manually most brokers place the orders at market price during the last half hour.
in Futures segment one is allowed to hold on to shorted position for more than a day ,generally until expiry
hope this helps