Re: os.popen('alias')

2005-11-18 Thread Chris F.A. Johnson
On 2005-11-19, Chris F.A. Johnson wrote: > On 2005-11-18, Belebele wrote: >>>From an interactive python shell, I execute the following: >> >> import os >> for line in os.popen('alias').readlines(): >> print line >> >> >> No aliases are print

Re: os.popen('alias')

2005-11-18 Thread Chris F.A. Johnson
On 2005-11-18, Belebele wrote: >>From an interactive python shell, I execute the following: > > import os > for line in os.popen('alias').readlines(): > print line > > > No aliases are printed. > > I started python from an bash environment t

Re: os.popen('alias')

2005-11-18 Thread Lars Kellogg-Stedman
> import os > for line in os.popen('alias').readlines(): > print line > > > No aliases are printed. > > I started python from an bash environment that had many aliases > defined. I expected to see the list of aliases from within the > intera