GVKun编程网logo

Shell - difference between '[email protected]" and "$*"

24

想了解Shell-differencebetween'[emailprotected]"and"$*"的新动态吗?本文将为您提供详细的信息,此外,我们还将为您介绍关于animageshowthedif

想了解Shell - difference between '[email protected]" and "$*"的新动态吗?本文将为您提供详细的信息,此外,我们还将为您介绍关于an image show the difference between frame and ...、Differance between a property and an instance v...、Difference between ?? , has_content , if_exists in freemarker、Difference between applicationContext.xml and spri的新知识。

本文目录一览:

Shell - difference between '[email protected]

Shell - difference between '[email protected]" and "$*"

There are no difference between $* and [email protected],but there is a difference between "[email protected]" and "$*".

$ cat 1.sh mkdir "$*" $ cat 2.sh mkdir "[email protected]" $ sh 1.sh a "b c" d $ ls -l total 12 -rw-r--r-- 1 igor igor 11 mar 24 10:20 1.sh -rw-r--r-- 1 igor igor 11 mar 24 10:20 2.sh drwxr-xr-x 2 igor igor 4096 mar 24 10:21 a b c d

We gave three arguments to the script (ab c and d) but in "$*" they all were merged into one argument a b c d.

$ sh 2.sh a "b c" d $ ls -l total 24 -rw-r--r-- 1 igor igor 11 mar 24 10:20 1.sh -rw-r--r-- 1 igor igor 11 mar 24 10:20 2.sh drwxr-xr-x 2 igor igor 4096 mar 24 10:21 a drwxr-xr-x 2 igor igor 4096 mar 24 10:21 a b c d drwxr-xr-x 2 igor igor 4096 mar 24 10:21 b c drwxr-xr-x 2 igor igor 4096 mar 24 10:21 d

You can see here,that "$*" means always one single argument,and "[email protected]" contains as many arguments,as the script had. "[email protected]" is a special token which means "wrap each individual argument in quotes". So a "b c" d becomes (or rather stays) "a" "b c" "d" instead of "a b c d" ("$*") or "a" "b" "c" "d" ([email protected] or $*).

copied from: https://stackoverflow.com/questions/15596826/what-is-the-difference-between-and-in-shell-script

an image show the difference between frame and ...

an image show the difference between frame and ...

frame 是CGRect 类型,frame.origin有x,y属性,frame.size有width,height属性

Differance between a property and an instance v...

Differance between a property and an instance v...

很好的一片介绍ivar 与 property的文章

http://iphonedevsdk.com/forum/iphone-sdk-tutorials/26587-slicks-definitive-guide-to-properties-p1.html

Difference between ?? , has_content , if_exists in freemarker

Difference between ?? , has_content , if_exists in freemarker

问题:

what is the difference between the following in freemarker? freemarker中的以下内容有什么区别?

!
has_content
?? 
if_exists

I used ??我用了 ?? instead of has_content & it lead to such huge issues.而不是 has_content & 它导致了如此巨大的问题。 Screwed up my day.搞砸了我的一天。 I really need to get this thing clarified.我真的需要弄清楚这件事。

When I used当我使用

!(xyz.abc!)?? -- it dint work

When I used当我使用

!(xyz.abc!)?has_content ... it did work 

Doesn''t ??不是吗?? OR has_content OR if_exists check for the same thing? OR has_content OR if_exists 检查相同的事情?


解决方案:

参考: https://stackoom.com/en/question/1aozP

Difference between applicationContext.xml and spri

Difference between applicationContext.xml and spri

Spring lets you define multiple contexts in a parent-child hierarchy.

The applicationContext.xml defines the beans for the "root webapp context", i.e. the context associated with the webapp.

The spring-servlet.xml (or whatever else you call it) defines the beans for one servlet''s app context. There can be many of these in a webapp, one per Spring servlet (e.g. spring1-servlet.xml for servlet spring1spring2-servlet.xml for servlet spring2).

Beans in spring-servlet.xml can reference beans in applicationContext.xml, but not vice versa.

All Spring MVC controllers must go in the spring-servlet.xml context.

In most simple cases, the applicationContext.xml context is unnecessary. It is generally used to contain beans that are shared between all servlets in a webapp. If you only have one servlet, then there''s not really much point, unless you have a specific use for it.



Question:

why would you have multiple spring servlets ?


 it is sometimes useful to separate parts of your application that could otherwise conflict in the same context. As an example you may have ReST services and standard views, you may then have different view resolvers or security concerns for the services as to the views.

今天关于Shell - difference between '[email protected]" and "$*"的分享就到这里,希望大家有所收获,若想了解更多关于an image show the difference between frame and ...、Differance between a property and an instance v...、Difference between ?? , has_content , if_exists in freemarker、Difference between applicationContext.xml and spri等相关知识,可以在本站进行查询。

本文标签: