We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38b3c94 commit 487fd9dCopy full SHA for 487fd9d
+stdlib/+sys/filesystem_type.m
@@ -6,11 +6,11 @@
6
7
if ispc()
8
dl = extractBefore(stdlib.absolute(p), 2);
9
- cmd = "pwsh -c (Get-Volume -DriveLetter " + dl + ").FileSystem";
+ cmd = sprintf('pwsh -c (Get-Volume -DriveLetter "%s").FileSystem', dl);
10
elseif ismac()
11
- cmd = "df -aHY " + p + " | awk 'NR==2 {print $2}'";
+ cmd = sprintf('df -aHY "%s" | awk ''NR==2 {print $2}''', p);
12
else
13
- cmd = "df --output=fstype " + p + " | tail -n 1";
+ cmd = sprintf('df --output=fstype "%s" | tail -n 1', p);
14
end
15
16
[s, t] = system(cmd);
0 commit comments