root@Dell:~ # echo "[exec $1]" >> .xinitrc
root@Dell:~ # echo ( "exec $1" ) >> .xinitrc
Badly placed ()'s.
root@Dell:~ # echo {"exec $1"} >> .xinitrc
root@Dell:~ # echo exec \$1 > .xinitrc
root@Dell:~ # cat .xinitrc
exec $1
exec
and the $1 are probably not going to do what was intended.echo `$x` >> .xinitrc
This will work too:Rookie trys with a strikeout:
root@Dell:~ # echo "[exec $1]" >> .xinitrc
root@Dell:~ # echo ( "exec $1" ) >> .xinitrc
Badly placed ()'s.
root@Dell:~ # echo {"exec $1"} >> .xinitrc
Shoot dang- RTFM
https://www.freebsd.org/doc/handbook/shells.html
Code:root@Dell:~ # echo exec \$1 > .xinitrc root@Dell:~ # cat .xinitrc exec $1
echo 'exec $1' > .xinitrc
FOO='something'
echo "$FOO"
echo '$FOO'