mIRC Home    About    Download    Register    News    Help

Print Thread
/write: too many $CR's #185724 13/09/07 05:37 AM
Joined: Jun 2006
Posts: 508
D
deegee Offline OP
Fjord artisan
OP Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 508
Using $lf adds a chr13 even tho it's not asked for...
  • //write -n asdf $+(asdf,$lf) | bread asdf 0 10 &a | echo -ag $bvar(&a,1-) | .remove asdf
    97 115 100 102 13 10

Using $crlf add TWO chr13's
  • //write -n asdf $+(asdf,$crlf) | bread asdf 0 10 &a | echo -ag $bvar(&a,1-) | .remove asdf
    97 115 100 102 13 13 10

Re: /write: too many $CR's [Re: deegee] #185742 13/09/07 11:42 AM
Joined: Dec 2002
Posts: 5,001
Khaled Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,001
The $lf is automatically expanded to $crlf by the underlying Windows command that is being used. If you want complete control over $lf and $cr you would need to use binary files instead.

Re: /write: too many $CR's [Re: Khaled] #185759 13/09/07 03:30 PM
Joined: Jun 2006
Posts: 508
D
deegee Offline OP
Fjord artisan
OP Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 508
Oh well...life wasn't meant to be easy. tired