[plug] calling a script within a script

Russell Steicke r.steicke at bom.gov.au
Fri Dec 9 15:33:52 WST 2005


On Fri, Dec 09, 2005 at 08:02:08AM +0800, Jon  Miller wrote:
> Yes, it is set as executable.  One question I need to know is does
> the function file need to have a she-bang at the beginning?

Something I just thought of, and tested.  Bash doesn't like sourcing
files in DOS format, because the CRs are not recognised as white
space.

Check this by opening the file with vim, and noting whether the status
line contains "[dos]" after the file is open.  (That information will
disappear if you go into insert mode or do almost anything else to the
file.)

Change it by typing

  :se ff=unix

in vim, and then saving the file.





-- 
Russell Steicke

-- Fortune says:
Immature poets imitate, mature poets steal.
		-- T.S. Eliot, "Philip Massinger"



More information about the plug mailing list