A typo correction:
echo 1&handle number to test is con
should be
echo 1<&handle number to test is con
It is equivalent to
echo is con 1<&handle number
Example analysis:
1<&7
means copying what handle 7 points to into handle 1.
And the output of echo is sent through handle 1 by default.
So if handle 7 points to con,
after copying it to 1, then 1 also points to con.
Then the output of echo will appear on the screen.
Otherwise it will not appear on the screen.
Of course, this is only a simple way to tell con from non-con.
For more specific methods, you'll still need to do more testing yourself.
[ Last edited by qzwqzw on 2009-6-13 at 21:14 ]
Recent Ratings for This Post
( 1 in total)
Click for details
| Rater | Score | Time |
| s11ss |
+3 |
2009-06-14 04:30 |