bug-bash
[Top][All Lists]
Advanced

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

Re: [1] 69728 segmentation fault bash


From: Clint Hepner
Subject: Re: [1] 69728 segmentation fault bash
Date: Fri, 20 Jul 2018 10:17:26 -0400

> On 2018 Jul 20 , at 9:27 a, Mr Guiguilebreton <address@hidden> wrote:
> 
> Hello, check this command in GNU bash, version 3.2.57(1)-release
> (x86_64-apple-darwin17):
> 
> ls () { ls -lG;}; ls

You wrote a recursive function with no base case. Don't do that.

    ls () { command ls -lG; }; ls

or use an alias for one of its few legitimate use cases

    alias ls='ls -lG'



reply via email to

[Prev in Thread] Current Thread [Next in Thread]