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


Groups > gnu.bash.bug > #14371 > unrolled thread

Re: [1] 69728 segmentation fault bash

Started byClint Hepner <clint.hepner@gmail.com>
First post2018-07-20 10:17 -0400
Last post2018-07-20 10:17 -0400
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#14371 — Re: [1] 69728 segmentation fault bash

FromClint Hepner <clint.hepner@gmail.com>
Date2018-07-20 10:17 -0400
SubjectRe: [1] 69728 segmentation fault bash
Message-ID<mailman.3895.1532096255.1292.bug-bash@gnu.org>
> 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'

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web