In message <_A4904@delegate-en.ML_> on 09/15/10(07:58:44)
you Vietnhi Phuvan <firstname.lastname@example.org> wrote:
|I am trying this syntax:
|delegated -P1080 SERVER=socks
|and I get
|-bash: !ConServ: event not found
|The intent is to block user1 from accessing ConServ through ports 80 and
|22. The bash shell doesn't like the "!" sign. What's wrong with the syntax?
A user of a command shell is expected to know what "!" means when it
used in a command line, and how to escape the interpretation of "!"
by a shell (using "\"). Just see "man bash" and search the word
"history" and the phrase "history substitution".
Another (recommended) way is not to use "!" on a command line, but in
a shell script to which the "history substitution" is not applied.
And another (the most recommended) way is writing parameters so that
never been interpreted by a shell, that is, writing each parameter
line by line in a file and include it with +=file.
9 9 Yutaka Sato, CSDP#005482 <email@example.com> http://delegate.org/y.sato/
( ~ ) National Institute of Advanced Industrial Science and Technology
_< >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
Do the more with the less -- B. Fuller