Roy Ivy III
5d097a7c78
Merge branch 'upstream' into dev-whitespace
...
Conflicts:
bucket/apache.json
bucket/cmake.json
bucket/curl.json
bucket/git.json
bucket/openssl.json
bucket/php54.json
bucket/php55.json
bucket/sliksvn.json
lib/core.ps1
2015-08-25 22:27:55 -05:00
Roy Ivy III
1fbcd53f2d
Remove now-erroneous comment
2015-08-20 13:44:58 -05:00
Roy Ivy III
2f367eff9d
Merge branch 'upstream' into fix-shim-encoding
...
Conflicts:
lib/core.ps1
2015-08-20 13:39:27 -05:00
Roy Ivy III
6d9bca805f
whitespace cleanup
...
* makes changes to almost all main repo files to be in accordance with .editorconfig
* some files in "test\fixtures\..." were left alone to avoid breaking tests
* NOTE: whitespace changes *only* (`git diff -b` shows no changes)
2015-08-17 22:54:43 -05:00
Simon Hartcher
e01faae68b
Make shim paths relative
2015-07-27 17:49:33 +10:00
Roy Ivy III
3b5887e0f9
Change encoding of generated shim files to ASCII
...
* change file encoding of the basic shim to be in a normal ASCII character set
.# DISCUSSION
Within PowerShell, `echo STRING > FILE` generates a file encoded in UCS-2-BOM format
(or "Unicode", in PowerShell terminology). UCS-2 later morphed into the similar
UTF-16 encoding format, and, within PowerShell, is treated as a "fuzzy equivalent"
encoding. Problematically, these UCS-2 files are misinterpreted by CMD, which expects
files using the ASCII (or "extended-ASCII") character encoding. And, in general, the
UCS-2 format has many drawbacks when interpreted outside of a narrow PowerShell
window. So, in general, it's best to stick to pure ASCII (or UTF-8, *without BOM*)
encoded files, if at all possible.
NOTE: ASCII (not "extended-ASCII") and UTF-8 (non-BOM) encoded files are exactly equivalent.
NOTE: "Extended-ASCII" is poorly defined, requiring an associated Windows Code Page designation to firmly establish the encoding.
ref: [Unicode UTF and BOM] http://www.unicode.org/faq/utf_bom.html @@ https://archive.is/TKnyk
ref: [Unicode and NET] http://csharpindepth.com/Articles/General/Unicode.aspx @@ https://archive.is/czs89
2015-07-24 21:33:24 -05:00
Simon Hartcher
bf4e92588c
Sanitise path when returning manifest path
...
Fixes #386
2015-07-24 14:04:38 +10:00
Simon Hartcher
1a2db05366
Fix #376 Robocopy is not always in PATH
...
Add ensure_robocopy_in_path method to core.ps1 which checks if
robocopy is available, then shims it if not.
2015-05-30 17:53:41 +10:00
Luke Sampson
561c773672
override all leaked aliases, not just those from global scope
2015-05-12 20:36:45 +10:00
Luke Sampson
bc1a8e4945
brute force fix for powershell alias problems
2015-05-11 20:17:59 +10:00
Simon Hartcher
49bd9b637d
Add tests for shim
...
Refactored rm_shims into two functions rm_shims and rm_shim
Added tests for shim and rm_shim
Added test for quote in username (#196 )
2015-04-12 21:15:50 +10:00
Luke Sampson
7a243c72f6
fix mkdir function
2015-03-11 13:18:15 +10:00
Simon Hartcher
2581bd8c53
Add missing commands to alias
2015-03-11 13:55:40 +11:00
Simon Hartcher
afa8166e81
Added functions as aliases for powershell commands
...
Fixes #183
2015-03-11 13:52:30 +11:00
Luke Sampson
2a3427bdd7
fix for install where username contains spaces (see #128 )
2014-07-16 10:56:37 +10:00
Luke Sampson
df1567c778
workarounds for windows not handling 'long' (260 char) paths (see #127 )
2014-07-10 02:38:42 +10:00
Luke Sampson
bf02a335d9
Use Scoop/1.0 user agent for downloads
2014-05-26 09:38:14 +10:00
Luke Sampson
655e346999
experimental path override for #52
2014-03-25 12:28:37 +10:00
Luke Sampson
69c11d449a
Revert "updated for new color naming in concfg (see lukesampson/concfg#3"
...
This reverts commit d4ff02bbef .
2014-03-17 18:08:33 +10:00
Luke Sampson
d4ff02bbef
updated for new color naming in concfg (see lukesampson/concfg#3
2014-03-17 15:58:49 +10:00
Luke Sampson
31410a12ba
fix for unzip when .NET version pre 4.5: ensure output directory exists first (issue #80 )
2014-03-16 10:05:11 +10:00
Luke Sampson
619a7a1b05
cache show: handle 1 file
2014-03-03 17:52:55 +10:00
Luke Sampson
5e0b74630e
improved comment
2014-02-21 19:57:38 +10:00
Luke Sampson
ac2716eacb
tidy-up
2014-02-21 19:57:02 +10:00
Luke Sampson
307ec93568
remove test
2014-02-21 19:47:26 +10:00
Luke Sampson
14625e0087
unzip: fall back to shell COM object if .NET earlier than 4.5 ( #66 )
2014-02-21 19:46:36 +10:00
Luke Sampson
e06fdf784f
abort if unzip fails
2014-01-17 08:51:15 +10:00
Luke Sampson
3b90306472
allow alias and arguments for shims
2014-01-12 15:46:59 +10:00
Luke Sampson
5c52166fcd
add .exe shims for programs that only look for .exes (e.g. tar calling gzip)
2014-01-05 16:25:16 +10:00
Luke Sampson
753c933ee2
for cmd shims, resolve path because cmd can't interpret ~
2014-01-02 14:20:33 +10:00
Luke Sampson
7909e692b6
scoop update: auto-install missing dependencies
2014-01-01 08:40:37 +10:00
Luke Sampson
634464e3de
simpler, faster unzip (5x speedup, see #35 )
2013-12-02 12:33:40 +10:00
Luke Sampson
a572724710
fix typo that caused paths not to be removed on uninstall
2013-11-12 09:21:23 +10:00
Luke Sampson
86ada69289
fix for #27 : don't assume English when checking for elevation
2013-11-08 08:43:21 +10:00
Luke Sampson
3430bd6a43
Fix for #23 : 'scoop which' doesn't return a valid path when home dir is a root path (e.g. H:\)
2013-11-07 11:15:53 +10:00
Luke Sampson
a21a2d2f1f
word-wrap for notes, add note to sudo
2013-10-17 12:20:39 +10:00
Luke Sampson
37c67784aa
shim powershell scripts so they're accessible from cmd.exe
2013-09-25 12:53:04 +10:00
Luke Sampson
d05491f661
also shim .cmd/.bat for cmd.exe (not just .exe)
2013-09-23 16:12:56 +10:00
Luke Sampson
5eec4b8355
make .ps1 shims work the same as .cmd shims
2013-09-04 12:16:46 +10:00
Luke Sampson
4d466c41ff
typo
2013-09-04 12:13:01 +10:00
Luke Sampson
2182181857
fix for last commit
2013-09-04 12:11:54 +10:00
Luke Sampson
e089fdf193
fix msys .cmd shim
2013-09-04 12:09:35 +10:00
Luke Sampson
a0bbf07953
tweaking msys/cmd/local-system edge case
2013-09-04 11:47:45 +10:00
Luke Sampson
d13039095c
fix for last commit
2013-09-04 11:36:46 +10:00
Luke Sampson
c5179fbaf5
edge case for MSYS shims running as system (don't try to set $HOME)
2013-09-04 11:32:44 +10:00
Luke Sampson
98a10aa3c9
revert last commit: didn't help
2013-09-04 10:54:18 +10:00
Luke Sampson
80154fa19e
don't include trailing slash when setting $HOME for MSYS progs
2013-09-04 10:51:31 +10:00
Luke Sampson
9ee42e7c0a
refactor installed_apps, more reorg for global
2013-09-01 12:41:54 +10:00
Luke Sampson
4247981ccd
change position of param to env func so that it actually works
2013-08-30 20:50:40 +10:00
Luke Sampson
7106fcadae
fix shims for global install
2013-08-30 20:24:57 +10:00