[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: shell script puzzle



--- Marty <martyb@ix.netcom.com> wrote:
>    /usr/bin/perl -w /usr/bin/debsums -ca --generate=all
> --deb-path=/[...]
> 
> I always thought the shell defaulted to bash or ksh, which is why I 
> never put the #!/bin/sh at the top of the file, and this and all my 

Like that makes for _any_ kind of portability.  You really should ensure
that you *start* doing so -- add the #! line in.  

> dozens of other bash scripts seem to work as expected.  Why and how is 
> perl being invoked here?

[n6tadam@station stow]$ file $(which debsums)
/usr/bin/debsums: perl script text executable

-- Thomas Adam

"The Linux Weekend Mechanic" -- http://linuxgazette.net
"TAG Editor"                 -- http://linuxgazette.net

"<shrug> We'll just save up your sins, Thomas, and punish 
you for all of them at once when you get better. The 
experience will probably kill you. :)"

 -- Benjamin A. Okopnik (Linux Gazette Technical Editor)

Send instant messages to your online friends http://uk.messenger.yahoo.com 



Reply to: