dmi0 commented on code in PR #2891:
URL: https://github.com/apache/cassandra/pull/2891#discussion_r1393242330


##########
tools/bin/cassandra.in.sh:
##########
@@ -31,7 +31,7 @@ CLASSPATH="$CASSANDRA_CONF"
 # it's just used here in constructing the classpath.
 if [ -d $CASSANDRA_HOME/build ] ; then
     #cassandra_bin="$CASSANDRA_HOME/build/classes/main"
-    cassandra_bin=`ls -1 $CASSANDRA_HOME/build/apache-cassandra*.jar`
+    cassandra_bin=`ls -1 $CASSANDRA_HOME/build/apache-cassandra*.jar | paste 
-sd ":" -`

Review Comment:
   `ls -1 $CASSANDRA_HOME/build/apache-cassandra*.jar` produces a list of files 
separated by "\n", which results in the `cassandra_bin` variable omitting some 
jar files. This issue caused the unit test to fail.
   
   [ `paste -sd ":"`](https://linuxcommandlibrary.com/man/paste) joins all the 
file names into a single line, using ":" as a delimiter.
   
   @smiklosovic 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to