Aryan
Aryan

Reputation: 69

Jacl script behaves wrongly in case of special characters \ ! ; $

Hi I have written one jacl script which is not working properly in case of ; $ ! \

test.jacl

set password [ lindex $argv 1 ]

puts "Hello your entered password is  $password"

Script OUTPUT

When I run

../test.jacl testUser Foo\b4r*

it returns

Hello your entered password is Foob4r*

CASE 2:

 ../test.jacl testUser Foo$b4r*

OUTPUT

Hello your entered password is Foo*

CASE 3:

../test.jacl testUser Foo;b4r*

OUTPUT

Hello your entered password is Foo

CASE 3:

../test.jacl testUser Foo!b4r*

OUTPUT

-bash: !b4r*: event not found

Kindly suggest best way to overcome this problem

Upvotes: 0

Views: 74

Answers (0)

Related Questions