opened
adamchenwei
username_0
* Please do not post problems found in old builds, update first.
  ConEmu versions has following format `YYMMDD`, so if you are using old build,
  there are chances that your problem was fixed long ago.
  <https://conemu.github.io/en/OldBuild.html>.

* Please do search first in the open <https://github.com/username_1/ConEmu/issues?q=is%3Aopen>
  or closed <https://github.com/username_1/ConEmu/issues?q=is%3Aclosed> issues.

* Please do not try to attach or paste here large files like crash dumps, logs or xml settings.
  Use external hosting services like <https://conemu.github.io/en/DropBox.html>
  or <https://gist.github.com/>.

* Please do not post here third-party problems, this is ConEmu project issue tracker.
  * <https://github.com/username_1/ConEmu/blob/master/.github/CONTRIBUTING.md>
  * <https://conemu.github.io/en/BadIssue.html>



### Versions

ConEmu build: 161206 x64
OS version: Windows 10 latest Developer Mode Enabled
Used shell version : git-bash, cmd, powershell


### Problem description
Trie to build a automated task step base on the existing Bash Script task was not successful
I did

```
%ConEmuDrive%\Git\git-cmd.exe --no-cd --command=usr/bin/bash.exe -l -i
cmd.exe -new_console:d:"cd C:\www && npm start"
```


### Steps to reproduce

1. create task copy from Bash task
2. run it
3. see it open two new tabs instead of running inside the Bash tab


### Actual results
two tabs, with one bash and another really just regular windows command line


### Expected results
open one bash tab and running the command `cd C:\www && npm start` in it!


### Additional files
![image](https://user-images.githubusercontent.com/4201698/34913502-76a4a454-f8cd-11e7-9d6e-d833a937e166.png)

[Settings](https://conemu.github.io/en/ConEmuXml.html),
[screenshots](https://conemu.github.io/en/BadIssue.html#Screenshot),
[logs](https://conemu.github.io/en/LogFiles.html),
etc.
Not able to start new bash tab with cd into a directory and run a simple npm command
issue
closed
Maximus5
username_1
issue
created
Maximus5
username_1
The `-new_console:d:` doesn't support `cd` or any other commands.

* [-new_console](http://conemu.github.io/en/NewConsole.html)
* [Tasks](http://conemu.github.io/en/Tasks.html)

I don't understand the question about languages.
comment
created
adamchenwei
username_0
@username_1 the script, or the command that wrote in task, clearly they are not shell script no? I mean that, I dont really type all that in the command line to get into a directory, like in console I only need to do `cd C:\www` and in this "task" script I have to write all that command, what language is it?
comment
created
Maximus5
username_1
Did you really read the links I posted?
comment
created
adamchenwei
username_0
@username_1  I did and in additional, I read  https://superuser.com/questions/1104567/how-can-i-find-out-the-command-line-options-for-git-bash-exe and https://stackoverflow.com/questions/19916670/how-to-launch-a-git-bash-window-with-particular-working-directory-using-a-script and they are different than what in the ConEmu instruction. Super confused, I am still not too familiar with different kind of command line languages. 

Would you able to instruct me on at minmum, how to open a default bash command and execute one more command after it? like `cd c:\www && npm start`?
Just tried `-c`, but still not working
`%ConEmuDrive%\Git\git-cmd.exe --command=usr/bin/bash.exe -l -i -c " cd C:\www"`
comment
created
Maximus5
username_1
* Be precise. Read the messages tools display to you. Words "it doesn't work" means nothing.
* Don't mix switches from different tools in one place. There is absolutely no sence to pass `cd c:\www && npm start` into `-new_console:d:"..."`. ConEmu is not a bash.
* Learn about paths in POSIX, `c:\www` is illegal there! You must use `/c/www` instead.
* At last, your question was answered many times, and there is [CygwinStartCmd](https://conemu.github.io/en/CygwinStartCmd.html) and [CygwinStartDir](https://conemu.github.io/en/CygwinStartDir.html). And actually, it is related to git-for-windows in much, but not to ConEmu.

```
%ProgramFiles%\Git\git-cmd.exe --command=usr/bin/bash.exe -c "cd /c/www; pwd; npm start"
```
comment
created
Maximus5
username_1
One more link

https://conemu.github.io/en/GitForWindows.html
comment
created
kdelmonte
username_2
-cur_console:s50H:d:C:\code\terminus "%ConEmuDir%\..\Git\git-cmd.exe" --no-cd --command=usr/bin/bash.exe -l -i -c "git status && $SHELL"
```

Screenshot:
![image](https://user-images.githubusercontent.com/900997/38090846-d06ce5de-3331-11e8-8992-fb274d5f0d0f.png)
comment
created
synthnassizer
username_3
@username_2  this final "...&& $SHELL " , was what I was missing. 
because git pull would complete , bash.exe would exit and I always got a notification from ConEmu that the command finished in less than 10 seconds and I would never get a command prompt. 
Makes sense to add this specific task invokation in  [GitForWindows](https://conemu.github.io/en/GitForWindows.html) as a new subsection "start git for windows, run a command in bash and provide a prompt afterwards"
comment