rottlog-develop
[Top][All Lists]
Advanced

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

RE: [Rottlog-develop] Install Problem


From: Jeff Grossman
Subject: RE: [Rottlog-develop] Install Problem
Date: Sat, 26 Oct 2002 09:21:28 -0700

Okay, here you go.  Remember, I had to change the first line to say
/bin/sh instead of /bin/bash.

[corp1:/temp] root# ./test.script
Path to convert is: /dir/to/test
TRY 1 (this shouldn't work): /dir/to/test
TRY 2 : /dir/to/test
TRY 3 : /dir/to/test
TRY 4 : /dir/to/test
TRY 5 : /dir/to/test
TRY 6 : \dir\to\test
TRY 7 : \/dir\/to\/test\/

Please let me know if there is anything else I can do.

Jeff

-- 
Jeff Grossman (address@hidden)
Director - Information Systems, Turner's Outdoorsman
http://www.turners.com
> -----Original Message-----
> From: address@hidden [mailto:rottlog-develop-
> address@hidden On Behalf Of address@hidden
> Sent: Friday, October 25, 2002 9:08 AM
> To: address@hidden
> Subject: Re: [Rottlog-develop] Install Problem
> 
> 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
> 
> 
> 
> _______________________________________________
> Rottlog-develop mailing list
> address@hidden
> http://mail.nongnu.org/mailman/listinfo/rottlog-develop





reply via email to

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