Re: LS command returns hidden files on OS X Leopard server
Re: LS command returns hidden files on OS X Leopard server
- Subject: Re: LS command returns hidden files on OS X Leopard server
- From: Doug McNutt <email@hidden>
- Date: Sat, 24 Oct 2009 12:53:00 -0600
At 13:25 -0500 10/24/09, Jim Skibbie wrote:
This may be a little off topic. I have a do shell script command to perform an "ls" of a directory like:
set x to do shell script ("ls /")
The server that this script runs on returns hidden files (like .DS_Store, .TemporaryItems, etc.) with this command as if the command was "ls -a" even though I didn't request it that way.
I can't find any profile that would be setting an alias to turn "ls" into "ls -a" so I'm stumped.
The script runs on a machine running OS X Leopard Server with the user logged in as root. I don't know if being logged in as root has something to do with it or not.
On Thu, 31 Oct 2002 17:53, Michael Joyner wrote:
> Quoting Ertan Kucukoglu <[EMAIL PROTECTED]>:
> > Hi all,
> >
> > When I su to root or login as root from console. ls shows
> > hidden files, too. No matter I use "ls -a" or "ls" result
> > is same:
> per 'man ls'
> The following options are available:
> -A List all entries except for . and ... Always set for the super- user.
You could make an alias so ls actually does 'su normaluser -c "ls"'
Or you could just not use your root account for file management.
--
--> Life begins at ovulation. Ladies should endeavor to get every young life fertilized. <--
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden