I have seen the following string in a sh script:
:> /tmp/foo
Is there a difference between this string and the following string?
> /tmp/foo
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
:is a no-op shell builtin, always returning a success exit status without outputting anything. It is a synonym of thetruebuiltin, but shorter.The two are equivalent, although the first suggests that the
:might be a placeholder for something in the future.