output and error redirection

hi :slight_smile:

if condition >&- 2>&-

Can anybody explain the redirection in above command

Thanks in advance

here the code is invoked with standard output and standard error closed..
basically here they are closing the output file descriptor..