A quick couple of Cygwin questions that I am not quite sure how to search in order to find the answer myself:
Question: When I run
which perl
on my cygwin installation, it doesn't point to my pre-installed windows installation, it points to the cygwin one. How can i change it so it points to my windows based perl installation:
/cygdrive/c/perl/bin/perl
Question: When I look at the desktop shortcut that invokes cygwin, it points to bash:
c:\cygwin\bin\bash --login -i
I cannot find the documentation for the allowed commandline flags. Specifically, I would like to find a flag that allows me to pass in a pre-defined user command, so that when cygwin starts up, that command is automatically invoked without me having to type it in.
This is something that I would want to customize regularly, so it is not efficient to put it in .bash_profile or something like that. If possible, I'd like to be able to specify it from the command-line.