Your gosh_profile does not set SCOPE (similar to PATH in bash). This means that 
commands will be searched for in some non-deterministic order.

You can use the “type” command, to show where a particular command is found.
In this case “source” was resolved to “obr:source”:

[derek@delboy felix-framework-4.6.0]$ java -jar bin/felix.jar
hello from gosh profile
g! source hello.osh
g! type source
source is void obr:source(boolean, File, String[])
true
g!

If you want gogo:source, either specify the scope explicitly, or set 
SCOPE=gogo:*, to ensure the gogo: SCOPE is searched first.

—
Derek



> On 3 Feb 2015, at 17:54, bprager <[email protected]> wrote:
> 
> Derek,
> 
> My custom gosh_profile only contains the single line: echo "Executing
> gosh_profile ..."
> 
> With gosh_profile in place the source command does NOT work.
> 
> See my example below (first use case below without, second case with
> gosh_profile in place):
> 
> g! -=[12:51:17][bernd_prager@NY01-9G7NJ12
> /cygdrive/c/bin/felix-framework-4.6.0]=-
> java -jar bin/felix.jar
> ____________________________
> Welcome to Apache Felix Gogo
> 
> g! source hello.osh
> echo "Hello, $1"
> g! type hello
> hello is function { echo "Hello, $1" }
> true
> g! stop 0
> g! 
> -=[12:52:06][bernd_prager@NY01-9G7NJ12
> /cygdrive/c/bin/felix-framework-4.6.0]=-
> mv etc/gosh_profile.bak etc/gosh_profile
> -=[12:52:17][bernd_prager@NY01-9G7NJ12
> /cygdrive/c/bin/felix-framework-4.6.0]=-
> java -jar bin/felix.jar
> Executing gosh_profile ...
> g! source hello.osh
> g! type hello
> type: hello not found.
> false
> g!
> 
> -- Bernd
> 
> 
> 
> 
> --
> View this message in context: 
> http://apache-felix.18485.x6.nabble.com/gogo-source-command-not-working-tp5011362p5011386.html
> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to