Re: Accidentally setting home

2011-05-28 Thread suvayu ali
On Sat, May 28, 2011 at 9:01 PM, Patrick O'Callaghan wrote: >> I was under the impression the shell accepts simple globs like '?' for >> any single character and '*' for any one or more characters hence I >> assumed it is an ls feature. I just read the "pattern matching" >> section in 'man bash' a

Re: Accidentally setting home

2011-05-28 Thread Patrick O'Callaghan
On Sat, 2011-05-28 at 20:29 -0700, suvayu ali wrote: > Hi Patrick, > > On Sat, May 28, 2011 at 8:22 PM, Patrick O'Callaghan > wrote: > >> > > >> > $ ls \.[^.]* > >> > > >> > >> Thanks a lot Patrick, I had no idea ls accepted regular expressions! > > > > It doesn't. You need to read up on how the

Re: Accidentally setting home

2011-05-28 Thread suvayu ali
Hi Patrick, On Sat, May 28, 2011 at 8:22 PM, Patrick O'Callaghan wrote: >> > >> > $ ls \.[^.]* >> > >> >> Thanks a lot Patrick, I had no idea ls accepted regular expressions! > > It doesn't. You need to read up on how the Shell works. I was under the impression the shell accepts simple globs lik

Re: Accidentally setting home

2011-05-28 Thread Patrick O'Callaghan
On Sun, 2011-05-29 at 12:42 +0930, Tim wrote: > On Sat, 2011-05-28 at 20:03 -0700, suvayu ali wrote: > > I had no idea ls accepted regular expressions! > > I was under the impression that the shell handler does *all* of those > wildcarding tricks, before handing over to the program. Of course. I

Re: Accidentally setting home

2011-05-28 Thread Patrick O'Callaghan
On Sat, 2011-05-28 at 20:03 -0700, suvayu ali wrote: > On Sat, May 28, 2011 at 3:45 PM, Patrick O'Callaghan > wrote: > > On Sat, 2011-05-28 at 12:18 -0700, suvayu ali wrote: > >> Hi Michael, > >> > >> On Sat, May 28, 2011 at 6:23 AM, Michael Schwendt > >> wrote: > >> > because the .* also > >> >

Re: Accidentally setting home

2011-05-28 Thread Tim
On Sat, 2011-05-28 at 20:03 -0700, suvayu ali wrote: > I had no idea ls accepted regular expressions! I was under the impression that the shell handler does *all* of those wildcarding tricks, before handing over to the program. -- [tim@localhost ~]$ uname -r 2.6.27.25-78.2.56.fc9.i686 Don't sen

Re: Accidentally setting home

2011-05-28 Thread suvayu ali
On Sat, May 28, 2011 at 3:45 PM, Patrick O'Callaghan wrote: > On Sat, 2011-05-28 at 12:18 -0700, suvayu ali wrote: >> Hi Michael, >> >> On Sat, May 28, 2011 at 6:23 AM, Michael Schwendt >> wrote: >> > because the .* also >> > includes .., the parent directory, which in this case is /home >> >> A

Re: Accidentally setting home

2011-05-28 Thread Patrick O'Callaghan
On Sat, 2011-05-28 at 12:18 -0700, suvayu ali wrote: > Hi Michael, > > On Sat, May 28, 2011 at 6:23 AM, Michael Schwendt wrote: > > because the .* also > > includes .., the parent directory, which in this case is /home > > A quick question, how can one use globs to expand only dotfiles > without

Re: Accidentally setting home

2011-05-28 Thread suvayu ali
Hi Michael, On Sat, May 28, 2011 at 6:23 AM, Michael Schwendt wrote: > because the .* also > includes .., the parent directory, which in this case is /home A quick question, how can one use globs to expand only dotfiles without including ".."? -- Suvayu Open source is the future. It sets us f

Re: Accidentally setting home

2011-05-28 Thread Dotan Cohen
On Sat, May 28, 2011 at 16:23, Michael Schwendt wrote: > On Sat, 28 May 2011 16:02:13 +0300, DC wrote: > >> I came across an interesting warning while googling an issue: >> apparently chowning another user's home directory will change your own >> home directory? That is what is warned here: >> htt

Re: Accidentally setting home

2011-05-28 Thread Michael Schwendt
On Sat, 28 May 2011 16:02:13 +0300, DC wrote: > I came across an interesting warning while googling an issue: > apparently chowning another user's home directory will change your own > home directory? That is what is warned here: > http://www.ambience.sk/old/user-account-copy-linux > Search that p

Accidentally setting home

2011-05-28 Thread Dotan Cohen
I came across an interesting warning while googling an issue: apparently chowning another user's home directory will change your own home directory? That is what is warned here: http://www.ambience.sk/old/user-account-copy-linux Search that page for commenter hollerith's comments, which another com