[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#169019: (startx fails to start x from console). FIX

On Thu, Nov 14, 2002 at 02:21:07PM -0600, Warren Turkal wrote:
> On Friday 15 November 2002 01:40 am, David Lawyer wrote:
> > for F in $(command ls $1); do
> >
> > The "command ls" insures that ls is not a shell function but the real ls
> > command.
> The following may be another solution
> for F in $(ls --color=no -1); do

I think the "command ls" is better since there are all sorts of ways
that one can write an ls () function for personal use.  For example, you
can, instead of using color, have symbols appended to the file name.  No
matter how the user has redefined ls, "command ls" will use the
ordinary ls (likely /bin/ls).

> Also, the following will allow spaces in filenames without problems
> for F in $(ls --color=no -1b); do
			David Lawyer

Reply to: