Dileep Dominic
Dileep Dominic

Reputation: 519

What does cd "some path" >&- means?

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

Answers (1)

Jürgen Hötzel
Jürgen Hötzel

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

Related Questions