[ale] why isn't this working? (tr question)
Jason Day
jasonday at worldnet.att.net
Mon Mar 10 13:39:43 EST 2003
On Mon, Mar 10, 2003 at 10:27:16AM -0500, Jason Vinson wrote:
> I am trying to compile a java program from the command line, and I am being lazy^H^H^H^Hcreative with my classpath, so I do this:
>
> javac -classpath ".:j2ee.jar:`find . -name "*.jar" -print | tr '\n'':'`" Tester.java
>
> which doesn't find my classes, which i know exist. So i trim out the find function as so:
>
> find . -name "*.jar" -print | tr '\n'':'
>
> but it returns a normal find output (i.e. file\n file\n file\n).
I just tried this, in debian linux, bash 2.05a.0, and got the
translation (file1.jar:file2.jar etc.). I did have to put a space
betwen the '\n' and ':' though, without the space I get:
tr: two strings must be given when translating
What system and shell are you using?
Jason
--
Jason Day jasonday at
http://jasonday.home.att.net worldnet dot att dot net
"Of course I'm paranoid, everyone is trying to kill me."
-- Weyoun-6, Star Trek: Deep Space 9
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale
More information about the Ale
mailing list