in reply to Re: shell redirect on windows, qx?
in thread shell redirect on windows, qx?

Ah, cool. It looks like Active State perl behaves very much like a unix-box in this respect. Thanks for the reply.

Replies are listed 'Best First'.
Re^3: shell redirect on windows, qx?
by BrowserUk (Patriarch) on Apr 11, 2008 at 21:28 UTC
    It looks like Active State perl behaves ...

    It's not down to AS perl. The redirection is done by the shell processor that is invoked by qx/backticks or system. Under AS perl that shell is the standard win32 cmd.exe.

    Other variants, such as cygwin builds and Strawberry etc. may choose to invoke a different shell. I think cygwin (as standard) uses a sh-alike, but you can probably get csh, bash or zsh that would run under cygwin. (If you must:), but you might have to configure something somewhere to get them used by default, and each has its own set of advantages and restrictions as with the *nix brethren.

    In theory, there is nothing to stop you from configuring a cygwin build to use cmd.exe, but I've no idea how.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.