2d
accepted Trying to test variable for unset, and specific value for launching Docker entrypoint Java app in debug mode
2d
comment Trying to test variable for unset, and specific value for launching Docker entrypoint Java app in debug mode
I tried variations of the syntax for sh, still getting similar errors for line 3.. like [: unexpected operator
2d
comment Trying to test variable for unset, and specific value for launching Docker entrypoint Java app in debug mode
And so using it in sh shell, with empty value for the var, causes error: test.sh: 3: [: ==: unexpected operator start normal (newline prints echo start normal from the else section)
2d
comment Trying to test variable for unset, and specific value for launching Docker entrypoint Java app in debug mode
image is alpine based, does not have bash available unfortunately :(
2d
comment Trying to test variable for unset, and specific value for launching Docker entrypoint Java app in debug mode
In any case, dont you mean the reverse, meaning = instead of !=?
2d
comment Trying to test variable for unset, and specific value for launching Docker entrypoint Java app in debug mode
Why does that solution I linked to, then checks first?
2d
asked Trying to test variable for unset, and specific value for launching Docker entrypoint Java app in debug mode
Oct
8
awarded Notable Question
Sep
13
awarded Popular Question
Sep
11
comment Assert an object is a specific type
I referred to the Hamcrest one of course, and I tried both keyword AND as a function after I noticed thats how you wrote it - there is no such function...
Sep
9
comment Assert an object is a specific type
Well, it has the downside which @EricG mentioned yes, about Franklin's answer - I just looked at it, and it didnt make sense to me so I just tested in my project with Junit5 - it is wrong!! there is no such syntax for instanceof , nor a method called InstanceOf! He is totally wrong. I stand by my answer still, and as evidenced, it was helpful to at least 30 people who upvoted it! (I assume you downvoted).
Sep
9
comment Assert an object is a specific type
I just tested this answer, it is NOT correct and leads to multiple compilation errors: Illegal start of expression, illegal start of type, ';' expected... In other words, your second parameter to the assertThat matcher, CANNOT be "instanceof (BaseClass.class)"! In fact, you didnt even type that correctly, the syntax you used is slightly different - "InstanceOf(" - as a function call! There is no such function actually... was it even tested by anyone? It seems to have been manually typed without any tests
Sep
4
comment How keep last 50 lines in logfile
When I tried to use the same for 44gb log file using 5000 lines instead of 50, I get error bash: xrealloc: cannot allocate 18446744071562067968 bytes
Aug
29
awarded Popular Question
Aug
16
comment Mybatis: no Result Maps were found for the Mapped Statement
Thanks @ave! That did the trick :)
Aug
15
asked Mybatis: no Result Maps were found for the Mapped Statement
Aug
9
comment Used truncate to create huge file - df is not showing decrease in available space
That was super fast. thanks!
Aug
7
awarded Scholar
Aug
7
comment Used truncate to create huge file - df is not showing decrease in available space
That did the trick, thank you! how do we open a docs bug for truncate, for the docs to reflect this minor detail, in future builds?
Aug
7
accepted Used truncate to create huge file - df is not showing decrease in available space
1 2 3 4 5