Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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

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


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

Better make that /bin/echo...

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

Replies are listed 'Best First'.
Re^4: [Good news] here docs portability!
by ysth (Canon) on Jun 17, 2007 at 07:33 UTC
    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...)

        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://621665]
help
Chatterbox?
[Marshall]: stevieb wish you well with water problems, my water was off all day Monday for repairs. Any more progress on .exe info problem?.
[stevieb]: Marshall: no. I commented on the thread yesterday. Visual Studio updates the tags ok, but corrupts the exe
[stevieb]: I advised the OP that a possible workaround would be to add a version function/flag that displays the required copyright/license info instead
[Marshall]: Darn! I'll look at the thread. Must not be updatinga byte count somewhere. The .exe format is a complex critter.
[stevieb]: that way, it's still "hard coded" into the exe at least, despite not being visible via Properties
[Marshall]: I also looked into PerlApp from Active State, but they don't sell their Dev Kit independent of a very expensive ($1,200) per year license anymore.
[Corion]: I would assume that the PE format hasn't changed that much since the days of yore, but it seems that I would be wrong in that assumption
[Marshall]: When I bought my copy 15+ years ago, it was just a couple hundred bucks.
[Marshall]: I looked at MS specs for PE format and I didn't see any changes in last decade, but evidenly that would be wrong.

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (10)
As of 2016-12-08 18:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (144 votes). Check out past polls.