[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: [Fedora-livecd-list] how to set root password?



> -----Original Message-----
> From: fedora-livecd-list-bounces redhat com 
> [mailto:fedora-livecd-list-bounces redhat com] On Behalf Of 
> pseudo vector
...
> Oh man, am I stupid. No I didn't try on an existing system, so sure
> was I that I had done everything right. I just did it though and found
> sure enough that the same encrypted pw doesn't work on another fc6
> system. The problem? I use a shell script to encrypt the passwords.
> The password I'm trying to use has a $ in it. The shell expanded that
> $ and the subsequent text as a variable, since it didn't exist it

BTW, for bash scripts, you can avoid this problem by quoting your here
doc delimiter.  If it's quoted, bash will not do variable expansion.

Copy/paste these into a bash shell and see for yourself.

cat <<'EOF'
test $one $two $three
EOF

cat <<EOF
test $one $two $three
EOF


BTW, I've thought about submitting a patch for mayflower to help
mitigate things like "shell quoting will be the death of me" but I keep
not getting around to it.  One of these days, I guess... :/

-Brian


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]