This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Starting bash in directory


Hi,

Cygwin installation creates a shortcut that runs bash like this:

bash -i --login

However, I would like to start bash so that after starting it would go to a specific directory. For instance, I would like to run something like:

bash -i --login "cd d:\users"

so that bash would start and then execute "cd d:\users" before the user starts typing anything. This would be equivalent to the WinNT command:

cmd /k "cd d:\users"

Do you guys know if that's possible?

Thanks,
Maurício



--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]