Saturday, November 5, 2022

[FIXED] How to solve Environment Variables with $ Character?

Issue

I have a Environment Variables:

 "PWD=uNfob$bA5052433"

When I print PWD out it always:

'uNfob'

I have tried :

'PWD=uNfob$bA5052433'

or

PWD='uNfob$bA5052433'

all not work,any suggestion ?


Solution

I solved it by 2 steps:

1.use single quotes 'PWD=uNfob$bA5052433'
2.add '/' 'PWD=uNfob/$bA5052433'


Answered By - William
Answer Checked By - Clifford M. (PHPFixing Volunteer)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.