On Thu, Feb 12, 2004 at 06:14:10PM +1100, Rohan Lloyd wrote:
> On 12 Feb 2004, at 4:33 PM, Daniel Macks wrote:
> >On Thu, Feb 12, 2004 at 12:53:09AM +1100, Rohan Lloyd wrote:
> >>
> >>I discovered that fink did not like this. If I add a "#!/bin/sh" to
> >>the
> >>first line, it saves the script to a file, and then runs it through
> >>/bin/sh which works, but I don't get to see the individual commands as
> >>they are run.
> >
> >Try '#!/bin/sh -x' instead.
>
> That's not quite as friendly, as it prints out the command after all
> the shell globbing etc. For example, you get:
>
> /var/tmp/tmp.1.yygucg
> + /usr/bin/install -m 644 common/icons/Makefile
> common/icons/Project.ede common/icons/bits.xpm
> common/icons/bitsbang.xpm common/icons/box-minus.xpm
[...]
>
> Instead of:
>
> /usr/bin/install -m 644 common/icons/*
Oh. Then I guess you want -v instead of -x. From the bash manpage:
-v Print shell input lines as they are read.
-x After expanding each simple command, display the
expanded value of PS4, followed by the command and its
expanded arguments.
[don't have time to think about the patch right now]
dan
--
Daniel Macks
[EMAIL PROTECTED]
http://www.netspace.org/~dmacks
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel