bringhurst commented on PR #1653:
URL: https://github.com/apache/samza/pull/1653#issuecomment-1423376054

   Here's a little test script just to verify the behavior:
   
   ```
   #!/bin/bash
   
   #set -x
   
   rm -rf test_target_dir
   rm -rf test_link_dir
   
   mkdir test_target_dir
   touch test_target_dir/target_file
   
   mkdir test_link_dir
   ln -s ../test_target_dir/target_file test_link_dir/link_file
   
   file=test_link_dir/link_file
   resolved_file=$( cd $(dirname $(readlink $([[ $OSTYPE == linux* ]] && echo 
"-f") $file)) ; pwd -P)
   
   echo "resolved=" $resolved_file
   
   file=test_target_dir/target_file
   resolved_file=$( cd $(dirname $(readlink `[[ $OSTYPE == linux* ]] && echo 
"-f"` "$file")) ; pwd -P)
   
   echo "original=" $resolved_file
   ```


-- 
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]

Reply via email to