Re: Shell command with (

2020-07-01 Thread Daniel Beck
> 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

Re: Shell command with (

2020-06-30 Thread Slide
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

Shell command with (

2020-06-30 Thread Jérôme Godbout
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

Re: workflow plugin: how to execute shell command with quoted arguments?

2015-06-16 Thread Jesse Glick
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

Re: workflow plugin: how to execute shell command with quoted arguments?

2015-05-19 Thread Alexander Uvizhev
#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

Re: workflow plugin: how to execute shell command with quoted arguments?

2015-05-19 Thread Baptiste Mathus
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

Re: workflow plugin: how to execute shell command with quoted arguments?

2015-05-19 Thread Alexander Uvizhev
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

workflow plugin: how to execute shell command with quoted arguments?

2015-05-19 Thread Alexander Uvizhev
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