Mailinglist Archive: opensuse (1264 mails)

< Previous Next >
Re: [opensuse] Quick question: how to call a script function from "find"?
  • From: Per Jessen <per@xxxxxxxxxxxx>
  • Date: Tue, 13 Jun 2017 13:42:12 +0200
  • Message-id: <ohoj2k$hrb$2@saturn.local.net>
Carlos E. R. wrote:

$@? I don't know what that one does. [searching...]

@ Expands to the positional parameters, starting from
one.
When the expansion occurs within double quotes, each parameter expands
to a separate word. That is, "$@" is equivalent to "$1" "$2" ... If
the double-quoted expansion occurs within a word, the expansion of the
first parameter is joined with the beginning part of the original
word, and the expansion of the last parameter is joined with the last
part of the original word. When there are no positional parameters,
"$@" and $@ expand to nothing (i.e., they are removed).


I don't quite see the difference with $* :-?

$* is a single string/argument, $@ is an array.



--
Per Jessen, Zürich (24.6°C)
http://www.dns24.ch/ - your free DNS host, made in Switzerland.


--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups