Reputation: 519
I came across below code line in a shell script file.
cd "some path" >&-
Can anyone help to find the meaning of it ?
Upvotes: 2
Views: 394
Reputation: 19727
stdout is closed. See Redirections (Duplicating File Descriptors). This doesn't make any sense in your example because cd
doesn't write to stdout anyway.
Upvotes: 2