> On 30. Jun 2020, at 18:27, Jérôme Godbout wrote:
>
> What the hell is sh is doing?
It's not automatically applying your .bash_profile or .bashrc to a standalone
script, as such an environment dependency would severely limit the reusability
of shell scripts.
You need to set the extglob sh
The shell is parsing the script and found an error in the syntax, it's not
sh that is checking syntax. You can add a shebang line if you have
something specific to bash
sh """#!/bin/bash
rm -fr -v !(${name})"""
The sh step just creates a shell script file (.sh file) and executes it,
which would u
Hi,
I'm trying to run the following command:
String name = '"download"';
sh(script: "rm -fr -v !(${name})");
this results into the following string:
rm -fr -v !("download")
This run just fine into bash shell, I also tried with
/bin/bash rm -fr -v !("download")
But I always end up with:
script.s
On Tuesday, May 19, 2015 at 11:40:32 AM UTC-4, Alexander Uvizhev wrote:
>
> To be clear what I try to do is:
> sh"myexecutable 'argument'"
>
node {
sh "echo 'works fine'"
}
Works for me. Without a complete, self-contained script it is hard to say
where you got it wrong (or whether there is a g
#x27;"
>>
>>
>>
>> вторник, 19 мая 2015 г., 18:38:18 UTC+3 пользователь Alexander Uvizhev
>> написал:
>>>
>>> I need to execute shell command with quoted argument like this:
>>> myexecutable 'argument'
>>> That's b
Uvizhev" a écrit :
> To be clear what I try to do is:
> sh"myexecutable 'argument'"
>
>
>
> вторник, 19 мая 2015 г., 18:38:18 UTC+3 пользователь Alexander Uvizhev
> написал:
>>
>> I need to execute shell command with quoted argument like this
To be clear what I try to do is:
sh"myexecutable 'argument'"
вторник, 19 мая 2015 г., 18:38:18 UTC+3 пользователь Alexander Uvizhev
написал:
>
> I need to execute shell command with quoted argument like this:
> myexecutable 'argument'
> That's be
I need to execute shell command with quoted argument like this:
myexecutable 'argument'
That's because argument can be interpreted wrong in some cases e.g.
"-input_value_looking_like_param".
Seems like 'sh' wipes all quotes in command string no matter what typ