Quote:
Originally Posted by
rdogadin
will work in any shell script if I run it on the same server?
Yes, but...
Keep in mind that different operating systems also have different implementations for the same tools, even the simplest ones.
This is particularly noticeable when you compare GNU utilities vs -say- BSD ones.
Almost every Linux system use GNU-based tools but it you were using AIX or Solaris I wouldn't blindly trust that "test" would behave exactly the same.
So, it also depends on who wrote those tools and if they comply with the standards (if any) -- You may be using 'test' written by GNU programmers, while some other server running AIX might be using "test" written by IBM engineers exclusively for AIX.