Hmmm,

If what you are trying to do is put the names of the files in the current 
working directory into  a file named foo...

that is a strange application,

before this thread, I would have expected to have to use `bash -c` to get 
redirection and wildcard expansion to work

like this

>  parallel bash -c 'echo * > {}' ::: foo

shows what I know

hmmm again

 >-----Original Message-----
 >From: ole.ta...@gmail.com [mailto:ole.ta...@gmail.com] On Behalf Of Ole Tange
 >Sent: Friday, May 23, 2014 12:47 PM
 >To: Cook, Malcolm
 >Cc: parallel@gnu.org; matthew.thomp...@nasa.gov
 >Subject: Re: User opinion needed: What shell should GNU Parallel use?
 >
 >On Fri, May 23, 2014 at 4:42 PM, Cook, Malcolm <m...@stowers.org> wrote:
 >
 >> i'd assumed the commands were not run by any shell but were fork/exec'ed by 
 >> perl.  So, whether or not $version, $BASHPID or any
 >other variable is defined in such subprocesses would merely depend on whether 
 >te were exported from the unix environment in
 >which parallel is invoked.  In other words, different results does not 
 >violate POLA here.
 >
 >One of the reasons a shell is started is to be able to do:
 >
 >  parallel 'echo * > {}' ::: foo
 >
 >This would not be possible if a shell was not spawned: Both the * and
 >the > are interpreted by the shell.
 >
 >There are other technical reasons why it it needed to spawn a shell,
 >but that is too detailed to cover here.
 >
 >
 >/Ole
  • User opi... Ole Tange
    • Re:... Ole Tange
    • RE:... Cook, Malcolm
      • ... Ole Tange
        • ... Cook, Malcolm
    • Re:... Thompson, Matt (GSFC-610.1)[SCIENCE SYSTEMS AND APPLICATIONS INC]

Reply via email to