[erlang-questions] Re: how do I get the actual list of arguments passed to an escript?

Raimo Niskanen raimo+erlang-questions@REDACTED
Mon Apr 4 17:37:08 CEST 2011


On Mon, Apr 04, 2011 at 03:55:18PM +0200, Matthias Lang wrote:
> On Monday, April 04, Harsh J wrote:
> 
> > I'm unable to reproduce your problem on R14B02. Here's my log:
> > http://paste.pocoo.org/show/365354/
> 
> > What's your bash version? Single quotes work normally for me as well.
> 
> 4.1.5(1)-release
> 
> Thanks for trying. That made me look a bit closer:
> 
>   tmp >/usr/local/src/otp_src_R14B02/bin/escript args "one two"
>   Args=["one two"]
>   tmp >ln -s /usr/local/src/otp_src_R14B02/bin/escript .
>   tmp >./escript args "one two"
>   Args=["one","two"]
> 
> There's something odd going on.

Indeed.

I have tried that on our R14B02, with your escript, and the symlink
both bash, csh and tcsh, and can not reproduce it.
SLES 10 SP2 x86_64

$ ls -l ./escript
lrwxrwxrwx 1 raimo users 37 2011-04-04 17:31 ./escript -> /opt/local/pgm/otp-r14b02/bin/escript
$ tcsh
raimo/tmp> ./escript ./args.esp  "one and two"
Args=["one and two"]


> 
> Matt
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions

-- 

/ Raimo Niskanen, Erlang/OTP, Ericsson AB



More information about the erlang-questions mailing list