rottlog-develop
[Top][All Lists]
Advanced

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

Re: [Rottlog-develop] Install Problem


From: stefko5
Subject: Re: [Rottlog-develop] Install Problem
Date: Fri, 25 Oct 2002 18:08:20 +0200
User-agent: Mutt/1.2.5i

Ciao Jeff Grossman,
 il giorno Thu, Oct 24, 2002 at 02:15:37PM -0700 hai scritto:

> No, I think this is the same problem.

So I think that the problem is in / --> \/ substitution:

esc_MAINPATH=${ROTT_ETCDIR//\//\\/}
esc_STATPATH=${ROTT_STATPATH//\//\\/}

On bash systems permits to have:
ROTT_ETCDIR  --> esc_MAINPATH
/etc/rottlog --> \/etc\/rottlog

But in your shell this doesn't succeed.
Please send me output of following little shell script. With this I will try
to understand how i can bypass this problem.
----------------- CUT HERE -----------------------
#!/bin/bash

orig_path="/dir/to/test"

echo "Path to convert is: $orig_path"

echo "TRY 1 (this shouldn't work): ${orig_path//\//\\/}"
echo "TRY 2 : ${orig_path//\//_t_}"
echo "TRY 3 : ${orig_path//\//\\\/}"
echo "TRY 4 : ${orig_path//\//\\\\/}"
echo "TRY 5 : ${orig_path//\//\\\\\/}"
echo "TRY 6 : $(echo $orig_path|tr '/' '\')"
echo -n "TRY 7 : "
OLDIFS="$IFS"
IFS='/'
for f in $orig_path; do
  echo -n "$f"
  echo -n '\/'
done
echo
IFS="$OLDIFS"

----------------- CUT HERE -----------------------

-- 
Stefano.
----------------------------------------------------------------------
Stefano Falsetto                                     address@hidden
                                    http://spazioweb.inwind.it/stefko5

Rot[t]Log home page:                     http://www.nongnu.org/rottlog





reply via email to

[Prev in Thread] Current Thread [Next in Thread]