[Swift-user] Argument list to long

Jonathan Monette jon.monette at gmail.com
Sun Oct 10 20:15:25 CDT 2010


  Ok. Is this an easily correctable bug?

On 10/10/10 8:13 PM, Mihael Hategan wrote:
> 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.
>
>

-- 
Jon

Computers are incredibly fast, accurate, and stupid. Human beings are incredibly slow, inaccurate, and brilliant. Together they are powerful beyond imagination.
- Albert Einstein




More information about the Swift-user mailing list