in reply to Re^3: moving from mac to PC
in thread moving from mac to PC
See ss64.com where internal commands have a dot after the name.
Given that dir and type are internal commands and ls (UnxUtils version) and icacls are not, you can see the difference:
# dir not OK perl -wMstrict -le "my $path = 'c:/scripts/resized';my @dirs = `dir $p +ath`;print qq(@dirs)" Formato del parametro non corretto - "scripts". # ls OK perl -wMstrict -le "my $path = 'c:/scripts/resized';my @dirs = `ls $pa +th`;print qq(@dirs)" # OK long output omitted #type not OK perl -wMstrict -le "my $path = 'c:/scripts/resized/zen-small.pl';my @d +irs = `type $path`; print qq(@dirs)" c:/scripts/resized/zen-small.pl not found # icacls OK perl -wMstrict -le "my $path = 'c:/scripts/resized';my @dirs = `icacls + $path`;print @dirs" c:/scripts/resized BUILTIN\Administrators:(I)(F) BUILTIN\Administrators:(I)(OI)(CI)(IO)(F) NT AUTHORITY\SYSTEM:(I)(F) NT AUTHORITY\SYSTEM:(I)(OI)(CI)(IO)(F) BUILTIN\Users:(I)(OI)(CI)(RX) NT AUTHORITY\Authenticated Users:(I)(M) NT AUTHORITY\Authenticated Users:(I)(OI)(CI)(IO)(M) Elaborazione completata per 1 file. Elaborazione non riuscita per 0 fi +le
is fun also to see different languages for errors issued (italian coming from the OS and english).
L*
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: moving from mac to PC -- win internal commands
by RonW (Parson) on Oct 28, 2016 at 18:19 UTC | |
by afoken (Chancellor) on Oct 29, 2016 at 14:46 UTC |