1832695 Members
2826 Online
110043 Solutions
New Discussion

[[ $? != 6 ]]

 
panchpan
Regular Advisor

[[ $? != 6 ]]

Hello
Could you please let me know the significance of 6 in this command?
[[ $? != 6 ]]

Thank you!
2 REPLIES 2
panchpan
Regular Advisor

Re: [[ $? != 6 ]]

I have got the answer , its application based number(validation).

Thank you!
Patrick Wallek
Honored Contributor

Re: [[ $? != 6 ]]

That would be the return code of the previous command.

If the return code of the previous command is not equal to 6, then do something.

The significance of the 6 depends ENTIRELY on what the previous command is and under what circumstances a return code of 6 is generated.