Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #14371

Re: [1] 69728 segmentation fault bash

From Clint Hepner <clint.hepner@gmail.com>
Newsgroups gnu.bash.bug
Subject Re: [1] 69728 segmentation fault bash
Date 2018-07-20 10:17 -0400
Message-ID <mailman.3895.1532096255.1292.bug-bash@gnu.org> (permalink)
References <CAJ=MUbJ6Qib_tyKmD1G2M1z8QP9SDF2tVx3m-SXB3Zv00CPhQw@mail.gmail.com>

Show all headers | View raw


> On 2018 Jul 20 , at 9:27 a, Mr Guiguilebreton <gmadec101@gmail.com> 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'

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: [1] 69728 segmentation fault bash Clint Hepner <clint.hepner@gmail.com> - 2018-07-20 10:17 -0400

csiph-web