perltrap: Shell traps page might be updated

2004-12-21 Thread Alexei Alexandrov
Sorry, for reposting - not sure that this message is on the list since I posted it via Google services previously which might be not correct... I don't know if it's a right place to post my message but anyway... I guess perltrap doc page should be updated regarding perl vs. shell bevavior differe

Re: perltrap: Shell traps page might be updated

2004-12-21 Thread Nicholas Clark
On Tue, Dec 21, 2004 at 12:29:58PM +0300, Alexei Alexandrov wrote: > Sorry, for reposting - not sure that this message is on the list since > I posted it via Google services previously which might be not > correct... > I don't remember seeing the first message, so it probably didn't get accepted

Re: perltrap: Shell traps page might be updated

2004-12-21 Thread Alexei Alexandrov
> Ooh. Interesting. Well spotted. I added this item to perltrap: > > =item * > > The shell's C uses "=", "!=", "<" etc for string comparisons and "-eq", > "-ne", "-lt" etc for numeric comparisons. This is the reverse of Perl, which > uses C, C, C for string comparisons, and C<==>, C C<< < >> etc

Re: perltrap: Shell traps page might be updated

2004-12-21 Thread Nicholas Clark
On Tue, Dec 21, 2004 at 03:51:25PM +0300, Alexei Alexandrov wrote: > Thanks. One correction: 'uses "=", "!=", "<" etc for string > comparisons' should be 'uses "==", "!=", "<" etc for string > comparisons' Are you sure? man test shows: s1 = s2 True if the strings s1 and s2 are identic

Re: perltrap: Shell traps page might be updated

2004-12-21 Thread Alexei Alexandrov
> > s1 = s2 True if the strings s1 and s2 are identical. > > s1 != s2 True if the strings s1 and s2 are not identical. > > s1 < s2 True if string s1 comes before s2 based on the ASCII value > of their characters. > > s1 > s2 True if strin