Commit Graph

21 Commits

Author SHA1 Message Date
pchemguy
45151d01c6 Add support for more than 9 shell command line arguments
Adds a loop collecting all command line arguments remaining after msys2_shell.cmd processing
2018-05-29 15:24:56 +03:00
jmd
ab784fea52 filesystem: Add -shell parameter to msys2_shell.cmd
Allow setting the login shell via command line parameter.  e.g,

    msys2_shell -shell fish -mintty
2018-02-19 21:30:00 -08:00
Niklas Holm
b3da2d9a8e Revert "Fix issue #1107"
This reverts commit fb4ed54980.
2018-02-14 15:19:53 +01:00
Niklas Holm
fb4ed54980 Fix issue #1107
- Only cd to $HOME when started from msys2_shell.cmd
2018-02-13 19:09:05 +01:00
Shea Parkes
7ca94b0abd Correct spelling in msys2_shell.cmd
Do this so the help docs are clearer.
2017-11-20 21:31:23 -05:00
Evgeny Grin (karlson2k)
677a01138d msys2_shell.cmd: added option for executing command and returning result to batch caller 2017-05-03 21:00:10 +03:00
Evgeny Grin (karlson2k)
c21d3c018f msys2_shell.cmd: use "title" directly with mintty 2017-05-03 18:56:14 +03:00
Evgeny Grin (karlson2k)
1aa446ea7e msys2_shell.cmd: removed unused Console2 options 2017-05-03 18:46:20 +03:00
Karlson2k
648db9106c msys2_shell.cmd: fixed processing specified working directory 2016-07-16 22:15:10 +03:00
Karlson2k
9f7a93a620 msys2_shell.cmd: print help if asked by '--help', '-?' or '/?' parameters
This simplify usage for people who are used to the MS or GNU standards.
2016-07-16 19:20:44 +03:00
Karlson2k
705a468108 msys2_shell.cmd: Fixed return value - printing help is not an error. 2016-07-16 19:11:50 +03:00
Karlson2k
222dd3a2ef msys2_shell.cmd: Improved help display 2016-07-16 19:08:44 +03:00
Karlson2k
f777b848dc msys2_shell.cmd: Fixed running with ConsoleZ.
'start' command like to use first quoted parameter as title.
2016-07-16 19:08:34 +03:00
Karlson2k
ae96deba82 msys2_shell.cmd: Fixed running with conemu if path (for any strange reason) has spaces 2016-07-16 19:08:27 +03:00
Karlson2k
1942ce3fcd msys2_shell.cmd: Stop deprecating parameters, give users freedom to use whatever they found convenient 2016-07-16 19:08:17 +03:00
Renato Silva
f3d69450f2 filesystem: Restore removed parameters as deprecated in shell starter. 2016-05-30 13:08:15 -03:00
Renato Silva
7aa258ac7b filesystem: Some improvements.
* Improve shell manager to run existing executable files provided as
  first argument, instead of opening them with Windows Explorer.

* Add simplified parameter -here to shell starter, making the directory
  argument optional and deprecating the -where parameter.

* Add -help parameter to shell starter.
2016-05-24 14:37:08 -03:00
Renato Silva
f64a34a763 filesystem: More consistent behavior for MSYSTEM.
MSYSTEM now defaults to MSYS when not specified, and there is no
different behavior anymore between empty value and MSYS, for example
/opt/bin was not being added to path when not setting MSYSTEM. This
removes the need for explicitly setting the variable, since a default
value is now implied.
2016-05-24 14:37:08 -03:00
Renato Silva
d81601b726 More environment improvements.
* Warning about required shortcut changes.
  When upgrading the filesystem package, user will be notified about the
  unified msys2_shell.cmd and asked for updating their shortcuts.

* New warning mechanism for interactive bash sessions.
  Applications can now add warnings to the terminal for notifying the
  user about possible problems. This is done by adding a file containing
  the warning text to one of the following locations:

      - /etc/profile.d/NAME.warning
      - /mingw32/etc/profile.d/NAME.warning
      - /mingw64/etc/profile.d/NAME.warning

  These files are processed by /etc/bash.bashrc. Files with the
  "warning.once" extension are removed after processing. An
  implementation example is provided by next change.

* Add simplified parameter -full-path to msys2_shell.cmd. The old
  parameter -use-full-path still works for now but is marked as
  deprecated using the above warning mechanism.

* Add file opening support to shell manager.
  Both directory and file arguments are now accepted and passed to
  Windows Explorer for opening with default application.

* Residual pkgrel updates.
2016-05-24 14:37:08 -03:00
Renato Silva
dc9fe79413 filesystem: Fixes for the shell starting script.
* Fix default value for MSYSTEM.
  This was being determined based on relative paths to /mingw64 and
  /mingw32. Since these directories are provided by filesystem, it
  would always default to MINGW64, and only under such relative path
  condition. MSYSTEM now defaults to MSYS when not specified.

* Remove the ambiguous parameters -mingw and -msys2.
  For the same reason above, and for avoiding confusion since MINGW
  shells are also "MSYS2 shells", respectively.
2016-05-24 14:37:08 -03:00
Renato Silva
2c4e6d7289 Rename start_shell.cmd to msys2_shell.cmd.
This more specific name improves MSYS2 detection by applications that
are sensitive to the presence of this file, such as the installer script
make-msys2-installer.bat.
2016-05-24 14:37:08 -03:00