pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
net/tsocks shell script working?
Hi,
has anyone ever seen the command '. /usr/pkg/bin/tsocks off' working?
I wonder how
libtsocks="/usr/pkg/lib/libtsocks.so"
...
LD_PRELOAD=`echo $LD_PRELOAD | sed 's,$libtsocks[ :]?,,'`
could ever remove the string "/usr/pkg/lib/libtsocks.so" from LD_PRELOAD...
It is not even a (Linux|GNU)ism, GNU sed does not use ?, although it
has \? as an extension.
For me it only works like this (with nbsed and gsed)
LD_PRELOAD=`echo $LD_PRELOAD | sed 's;'$libtsocks'[ :]\{0,1\};;'`
ciao
Klaus
Home |
Main Index |
Thread Index |
Old Index