Dave Mills escribió:
> 
> Seems to be an issue with escape chars not being processed as expected, 
> and newline's not being removed.
> 
> I have added "-ne" to the three echo commands below to force echo to 
> supress newline and evaluate escape chars.
> 
> There were still newlines in the $file variable so I changed s/\n// to 
> s/[\r\n]//g to strip out all carriage returns and newlines as there 
> shouldnt be either in $url or $path.
> 

maybe removing all the return caracters on the scripts would help as well..


The orinal line has not got s/\n// :

file=`echo "$needed" | cut -d\| -f4 | tr '~' ' '  | perl -pe 's/\r//;s/^ 
*//;s/ *$//;s/([^\/]*\/*)$/lc($1)/eg'`

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
unattended-info mailing list
unattended-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unattended-info

Reply via email to