Re: bash and perl output of 'hello' with no \n doesn't work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It is the Unicode/UTF8 thing again. I have seen almost the same thing
in my random signature script, and, as you can see in this message,
I've temporarily removed it for lack of time. For the record, the
one-liner (perfectly working in RH 7.3) was:

set signature="perl -an0777F'\n\s*\n' -e 'print \$F[rand(@F)]'
~/pers_doc/massime|"

and only printed one word of the signature. This other version does
just nothing:

set signature = "perl -e '$/ = \"\n\n\";@A=<>;print
"\n$A[int(rand($#A))]"' ~/pers_doc/massime|"


This Perl/RH8.0 incompatibility has already surfaced. This thread:

http://groups.google.com/groups?dq=&hl=en&lr=&ie=UTF-8&th=44f0dd99eab05a5c

gives details and some solution. I confess that I didn't check myself,
but from what they say there, it looks like it's not covered by the
release notes either.

IMPORTANT REQUEST TO RED HAT: Of course, I'll gratefully accept any
suggestion about how to fix my script, but the real solution would be
a page on the web site called "The Perl/RH 8.0 Howto" or something
like that. Something like the Postfix/Red Hat documentation, which
deals both with general and packaging specific issues.

	Ciao,
		Marco Fioretti



-- 
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux