Skip to content

Commit 11765da

Browse files
committed
quote for spaces
1 parent 70e13f6 commit 11765da

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

+stdlib/+sys/device.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
c2 = '''\").SerialNumber"';
99
cmd = strcat(c0, c1, c2);
1010
elseif ismac()
11-
cmd = "stat -f %d " + p;
11+
cmd = "stat -f %d " + '"' + p + '"';
1212
else
13-
cmd = "stat -c %d " + p;
13+
cmd = "stat -c %d " + '"' + p + '"';
1414
end
1515

1616

+stdlib/+sys/get_owner.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
if ispc()
77
cmd = "pwsh -c (Get-Acl -Path '" + p + "').Owner";
88
elseif ismac()
9-
cmd = "stat -f %Su " + p;
9+
cmd = "stat -f %Su " + '"' + p + '"';
1010
else
11-
cmd = "stat -c %U " + p;
11+
cmd = "stat -c %U " + '"' + p + '"';
1212
end
1313

1414
[s, m] = system(cmd);

+stdlib/+sys/inode.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
%% SYS.INODE get file inode
22

3-
function i = inode(m)
3+
function i = inode(p)
44

55
i = 0;
66

77
if ispc()
88
% https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/fsutil-file
9-
cmd = "fsutil file queryfileid " + m;
9+
cmd = "fsutil file queryfileid " + '"' + p + '"';
1010
elseif ismac()
11-
cmd = "stat -f %i " + m;
11+
cmd = "stat -f %i " + '"' + p + '"';
1212
else
13-
cmd = "stat -c %i " + m;
13+
cmd = "stat -c %i " + '"' + p + '"';
1414
end
1515

1616
[s, m] = system(cmd);

0 commit comments

Comments
 (0)