Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^5: [Good news] here docs portability!

by gaal (Parson)
on Jun 17, 2007 at 07:39 UTC ( #621668=note: print w/ replies, xml ) Need Help??


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

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...)


Comment on Re^5: [Good news] here docs portability!
Re^6: [Good news] here docs portability!
by ysth (Canon) on Jun 17, 2007 at 07:44 UTC
    Broken? Per POSIX, -e is not a special flag, and should be output. With the XSI extensions, you are supposed to get \r -> CR whether you want it or not. Without XSI, the output when there are backslashes is undefined.

    So perl is the way to go.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://621668]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (10)
As of 2014-07-11 04:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (218 votes), past polls