maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver Schrenk <oliver.schr...@gmail.com>
Subject Re: Keeping the executable bit on shell scripts when testing
Date Thu, 27 Jan 2011 22:22:08 GMT
No. That works fine. Its the application logic that get's in the way. Maybe I find a workaround
using `sh` but it'll be a few days I have time to work on it again.

Thanks.

Best regards
Oliver

PS Throwing a crazy idea out there: Java7 rewrite for Maven using JSR203 accessing POSIX file
permissions

 

Am 27.01.2011 um 19:42 schrieb Haszlakiewicz, Eric:

>> -----Original Message-----
>> From: Oliver Schrenk [mailto:oliver.schrenk@gmail.com]
>> 
>> It's a good idea but not suitable for my case. If I'm calling sh, the real
>> script would be an argument.In my case this would break the test cases for
>> my command line argument validation tool.
> 
> cat > aa.sh <<EOF
> #!/bin/sh
> echo 0:$0
> echo 1:$1
> EOF
>> chmod +x aa.sh
>> ./aa.sh
> 0:./aa.sh
> 1:
>> ./aa.sh a
> 0:./aa.sh
> 1:a
>> sh ./aa.sh a
> 0:./aa.sh
> 1:a
> 
> That looks exactly the same to me.  What kind of shell are you using that breaks this?
> 
> eric
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message