#9 languages: Processing -> Java -> C -> Python 3 -> JavaScript (ES6) -> Octave -> Bash -> sed -> V, 160 bytes
9 languages: Processing -> Java -> C -> Python 3 -> JavaScript (ES6) -> Octave -> Bash -> sed -> V, 160 bytes
print("class A{public static void main(String[]a){System.out.print(\"main(){printf(\\\"print(\\\\\\\"alert`disp('echo s/.*/iPPCG/')`\\\\\\\")#\\\");}\");}}");//
Right now my objective is to find and add languages where I don't need to escape quotes and stuff.
Processing outputs (note that the the Java program doesn't run in Processing and vice-versa)
class A{public static void main(String[]a){System.out.print("main(){printf(\"print(\\\"alert`disp('echo s/.*/iPPCG/')`\\\")#\");}");}}
Java outputs:
main(){printf("print(\"alert`disp('echo s/.*/iPPCG/')`\")#");}
C outputs:
print("alert`disp('echo s/.*/iPPCG/')`")#
Python 3 (note that the python program won't work in Processing because of the comment and vice-versa) outputs:
alert`disp('echo s/.*/iPPCG/')`
JavaScript outputs:
disp('echo s/.*/iPPCG/')
Octave outputs:
echo s/.*/iPPCG/
Bash outputs:
s/.*/iPPCG/
sed outputs:
iPPCG
V outputs: