The below is executing on windows:
C:\cygwin\bin\bash.exe -c "echo abc; echo 1 ; c:/cygwin/bin/bash.exe -c "c:/cygwin/bin/tcsh.exe echo def; pwd " "
Running the above command, and getting the output as:
abc
1
[PPP@machine1 ...Users/PPP]$
Desired Output:
abc
1
def
C:\Users\PPP
In all, I want the commands under tcsh to also work (In above command, it is "echo def; pwd"). How can I have the progress on it?
It is possible that you really want to nest multiples calls as
bash -> bash -> tcshA possible way to do it
and the output on my W10 CMD is
but it is horrible and a lot is superfluous. Still horrible but simplified, using the first call as login-shell
and the output is
In general I miss the need of all the nested calls, and writing a simple shell scripts with all command should be enough. Also using a batch file like
--- prova.bat -----
--- end --------