Charles Lepple wrote: > On Wed, Apr 29, 2009 at 5:20 AM, Mario Frasca <[email protected]> wrote: >> it complains because some outputs are redirected appending a $REDIR to >> the line, where >> REDIR=">&2" >> (at line 2693)
The difference between the two versions is that they are two different versions: Fink has abcde-2.2.6, whereas debian has 2.3.99. The script has been much reworked in the meantime, so it is not very curious that the output is rather different. OTOH, those $REDIRECT constructs are still present in 2.3.99, and I am not sure why this then works for Mario. > Is there a URL for the Debian version of the script, or is it buried > in a tarball and patch set? <http://http.us.debian.org/debian/pool/main/a/abcde/abcde_2.3.99.6.orig.tar.gz> The script is on the surface of the source tarball. > Also, what does the #! line (first line) look like? #!/bin/sh for the Fink version, #!/bin/bash for 2.3.99, but I would be surprised if this made a difference. A little test shows that the $REDIR construct does not work. It appears that Apple's bash/sh does not allow to store redirect commands in a variable. According to man bash, under "SIMPLE COMMAND EXPANSION", redirect commands are "saved for later processing" before any variables are expanded. ls . asdf 2>file >&2 works as expected (i.e. writes both stdout and stderr into "file"), but REDIR=">&2" ls . asdf 2>file $REDIR gives the error '>&2: No such file or directory'. I wonder what version of bash debian uses so that this works. -- Martin ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ Fink-devel mailing list [email protected] http://news.gmane.org/gmane.os.apple.fink.devel
