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

Per Melin per.melin@REDACTED
Tue Apr 5 17:44:28 CEST 2011

On Tue, Apr 5, 2011 at 4:45 PM, Raimo Niskanen
<raimo+erlang-questions@REDACTED> wrote:
> What you acually want is ${1+"@"} since "$@" when there are no arguments
> expands to "" i.e one empty argument. ${1+"$@"} expands "$@" iff
> there is at least one argument, empty or not.

I've wondered about that. My manpage for bash says: 'When there are no
positional parameters, "$@" and $@ expand to nothing (i.e., they are

And I think it's been like that for quite some time. In which shell is
${1+"@"} required?

More information about the erlang-questions mailing list