Results 1 to 2 of 2
Hi Guys,
I have some problems with solaris 10 (bash).
I used solaris 9 (tcsh) till now and the following has changed:
solaris 10:
Code:
# exit 1 | tee
...
- 02-08-2010 #1Just Joined!
- Join Date
- Feb 2010
- Posts
- 1
Problems with Solaris 10 - Solaris 9
Hi Guys,
I have some problems with solaris 10 (bash).
I used solaris 9 (tcsh) till now and the following has changed:
solaris 10:
solaris 9:Code:# exit 1 | tee # echo $? 0
I realy need to use the tee function because i wrote a lot of code depending on it.Code:# exit 1 | tee # echo $? 1
Does anyone have a solution?
What is going on?
Thanks!
- 02-08-2010 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
Duh, this isn't a Solaris forum... There are subtle variances between bash implementations on Solaris and Linux systems. On my CentOS/RHEL 5 systems, bash behaves as does your Solaris 10 example. You should read the Solaris 9 bash documentation to see if its behavior is as designed, or is a bug. As for a solution, I think you are going to have to resolve this yourself. FWIW, echo $? will output the exit code of the last command, which in this case is tee. So, I think that if you are depending upon the behavior as found in Solaris 9, you are depending upon a faulty implementation.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote