[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Patch: 'ldapmodify -y file' reads password from file (ITS#2031)

Kurt D. Zeilenga writes:
> To aid creation of passfiles (without the newline), maybe we
> should profile example scripts for their creation in contrib?

The 'echo -n' variabt should be a script like this:

case `echo -n foo` in
-n*)	echo "$*\c" ;;
*)	echo -n "$*" ;;

because there are some machines (BSD-like? I don't remember) where
echo -n is not supported, but echo "foo\c" does the job.  I suppose
backslashes in $* are interpreted too, but I don't know for sure.
I don't remember which other escape sequences there are.