We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d795a6 commit eea6202Copy full SHA for eea6202
x
@@ -7,9 +7,12 @@
7
8
set -eu
9
10
+# syntax check
11
+sh -n $0
12
+
13
realpath() {
14
if [ -d "$1" ]; then
- CDPATH='' command cd "$1" && pwd -P
15
+ CDPATH='' command cd "$1" && pwd -P
16
else
17
echo "$(realpath "$(dirname "$1")")/$(basename "$1")"
18
fi
x.ps1
@@ -2,6 +2,11 @@
2
3
# See ./x for why these scripts exist.
4
5
+$ErrorActionPreference = "Stop"
6
+Get-Command -syntax ${PSCommandPath}
$xpy = Join-Path $PSScriptRoot x.py
# Start-Process for some reason splits arguments on spaces. (Isn't powershell supposed to be simpler than bash?)
# Double-quote all the arguments so it doesn't do that.
0 commit comments