[Swift-user] Argument list to long

Mihael Hategan hategan at mcs.anl.gov
Sun Oct 10 20:13:55 CDT 2010


On Sun, 2010-10-10 at 20:08 -0500, Jonathan Monette wrote:
> Ok.  Thanks.  That got it for me.
> 
> #!/bin/bash
> "/home/jonmon/Library/Montage/bin/mProject" "-X 
> raw_dir/2mass-atlas-000315s-j0330245.fits 
> proj_dir/proj_2mass-atlas-000315s-j0330245.fits|header.hdr" 
> 1>"stdout.txt" 2>"stderr.txt"
> 
> Why is there at "|" right before the parameter header?  If I were to run 
> this by hand in a shell, the command would be
> /home/jonmon/Library/Montage/bin/mProject -X 
> raw_dir/2mass-atlas-000315s-j0330245.fits 
> proj_dir/proj_2mass-atlas-000315s-j0330245.fits header.hdr
> 
> Is this how it is supposed to be? I thought | in bash meant pipe output 
> from left into whats on the right?

Right. It's a bug. The pipe is used as file name separator by swift when
passing a list of file names around. It should either be filtered by
_swiftwrap or it should not be used with parameter.mode=files. So it's a
bug.





More information about the Swift-user mailing list