{"id":13411409,"url":"https://github.com/AdaCore/gsh","last_synced_at":"2025-03-14T17:30:56.125Z","repository":{"id":54034346,"uuid":"46787904","full_name":"AdaCore/gsh","owner":"AdaCore","description":"A POSIX shell for Windows.","archived":false,"fork":false,"pushed_at":"2023-07-22T21:28:50.000Z","size":14436,"stargazers_count":102,"open_issues_count":12,"forks_count":10,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-07-31T20:45:48.249Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AdaCore.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2015-11-24T11:37:55.000Z","updated_at":"2024-07-30T16:12:35.000Z","dependencies_parsed_at":"2024-01-09T11:17:25.650Z","dependency_job_id":null,"html_url":"https://github.com/AdaCore/gsh","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdaCore%2Fgsh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdaCore%2Fgsh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdaCore%2Fgsh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdaCore%2Fgsh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AdaCore","download_url":"https://codeload.github.com/AdaCore/gsh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243618633,"owners_count":20320269,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T20:01:13.471Z","updated_at":"2025-03-14T17:30:52.939Z","avatar_url":"https://github.com/AdaCore.png","language":"C","funding_links":[],"categories":["Applications","Packages"],"sub_categories":["Shells, Interpreters and Emulators","Shells"],"readme":"GSH - A POSIX shell for Windows\n===============================\n\nGeneral Information\n-------------------\n\nGSH is an implementation of a [POSIX shell](http://pubs.opengroup.org/onlinepubs/9699919799/)\ndeveloped for the Windows platform.\n\nThe aim of the project is to provide an efficient UNIX shell\ninstantiation for Windows, for non interactive usage.\n\nGSH can be used to compile projects depending on autotools, UNIX make,...\nAs it targets specifically Windows platform, GSH differs significantly\nfrom the most used ones such as bash, zsh. Among others, its implementation\ndoes not depend on the ['fork system call'](https://en.wikipedia.org/wiki/Fork_%28system_call%29)\nand doesn't emulate that system call (as it's done on Cygwin).\nThis allows better compiling performance (the build times can be up to 3 or\n4 times faster than builds performed by projects such as Cygwin).\n\n![XKCD on shell escaping](http://imgs.xkcd.com/comics/backslashes.png \"Understanding shell escaping!\")\n\nImage from [XKCD](http://www.xkcd.com/1638/)\n\nBuild \u0026 Installation\n--------------------\n\nRun:\n\n    $ make\n    $ make install PREFIX=\u003ctarget directory\u003e\n\nAlternatively to just compile the `gsh` binary you can do:\n\n    $ gprbuild -p -P posix_shell\n\nExample of Usage\n----------------\n\nCurrently the main goal of the project is to speed up builds of\n[GNU](https://www.gnu.org) projects on Windows platform. As the project is\nstill not complete you still need a [Cygwin](http://www.cygwin.com)\ninstallation for the tools not provided by GSH. The only requirement is that\nthe build should be done in a path for which Cygwin path maps directly to\na Windows path. For example if you do your build in c:/MyBuilds then in Cygwin\nthe path should map to /MyBuilds.\n\nAn example of build sequence that does not destroy your current Cygwin\nenvironment:\n\n    $ (export PATH=$GSH_INSTALL_DIR/bin:$PATH;\n       export SHELL=$GSH_INSTALL_DIR/bin/gsh; \n       export CONFIG_SHELL=$GSH_INSTALL_DIR/bin/gsh;\n       $CONFIG_SHELL/configure --prefix=/myinstall_dir\n       make)\n \n\nLicense\n-------\n\nAll files are provided under terms of the\n[GNU General Public License version 3](http://www.gnu.org/licenses/gpl-3.0.en.html).\n\nThe project includes fragments of other projects with licenses compatible\nwith the GNU General Public License version 3:\n\n* [`src/readline`](src/readline) contains the source of the\n  [GNU readline library](https://cnswww.cns.cwru.edu/php/chet/readline/rltop.html)\n* [`src/gnulib`](src/gnulib) contains part of the\n  [GNU Portability Library](https://www.gnu.org/software/gnulib/)\n* [`lua/src`](lua/src) contains the sources of [Lua 5.2](http://www.lua.org/)\n* [`gnutools`](gnutools) contains some executables from\n  [GNUWin](http://gnuwin32.sourceforge.net/)\n* [`os/src/ddk`](os/src/ddk) contains the DDK part of the\n  [mingw-w64](http://mingw-w64.org/doku.php) project\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAdaCore%2Fgsh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAdaCore%2Fgsh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAdaCore%2Fgsh/lists"}