>>>>> On Mon, 8 Jun 2026 22:49:52 +0200, Pierre Bernhardt said: > > Am 08.06.26 um 20:18 schrieb Pierre Bernhardt: > > I suggest hiding $$ by the shell should do the trick. > > \$\$ could be used or maybe <<'END-OF-DATA' with ticks. > > But because I made the steps manually I did not test it. > > Maybe some others could find this helpfull. > Only using double \\$\\€ or '\$\$' could work: > > root@newxen:/media# bash <<END > echo bla > echo $$ > END > bla > 6124 > root@newxen:/media# bash <<END > echo bla > echo \$\$ > END > bla > 890368 > root@newxen:/media# bash <<'END' > echo bla > echo $$ > END > bla > 890536 > root@newxen:/media# bash <<END > echo bla > echo \\$\\$ > END > bla > $$ > root@newxen:/media# bash <<END > echo bla > echo '\$\$' > END > bla > $$
You are confusing yourself here! The problem is that you are running bash with the input, so that is interpreting the $$ a second time. If you want to simulate what update_postgresql_tables does, then do it with cat, i.e. cat <<END escaped: \$\$ not escaped: $$ END __Martin _______________________________________________ Bacula-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bacula-users
