in reply to Re: [Good news] here docs portability!
in thread [Good news] here docs portability!

Well, it was obviously news to blazar, and it's pretty certain to be news to a good many others too.

And sudo ln -s /usr/bin/perl /usr/bin/perl`echo -e '\r'`

Replies are listed 'Best First'.
Re^3: [Good news] here docs portability!
by gaal (Parson) on Jun 17, 2007 at 06:08 UTC
    Better make that /bin/echo...

    What was I thinking, qx// is executed with /bin/sh regardless of user's favorite shell.

      No, you are correct; the shell's `` will prefer the builtin echo, so what I gave won't work under some shells without explicitly asking for the coreutils /bin/echo. (Wow, the POSIX standard for echo is really dumb.)
        As much as I like being right by accident, don't even old Bourne shells honor -e? In my original comment, I was thinking of c shells, which do not.

        But instead of relying on the system's /bin/echo, which who knows, might be broken in rusty old systems, why not use Perl for this command (since we know the user has it...)