Path: csiph.com!goblin2!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: Clint Hepner Newsgroups: gnu.bash.bug Subject: Re: [1] 69728 segmentation fault bash Date: Fri, 20 Jul 2018 12:18:28 -0400 Lines: 37 Approved: bug-bash@gnu.org Message-ID: References: <5BF37503-E5B4-4695-9CF1-2BD390D1FF54@gmail.com> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: usenet.stanford.edu 1532103517 22225 208.118.235.17 (20 Jul 2018 16:18:37 GMT) X-Complaints-To: action@cs.stanford.edu Cc: bug-bash@gnu.org To: Mr Guiguilebreton Envelope-to: bug-bash@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=cToQT62mYU9Tu6+TZ8yPMGhY9W1djGe2Lgkklf5LL4g=; b=F+kwR81lcdBzKd+NlnQ3lASdMAuEpdaBx+xPiPWmxJB2jo6T4Dmjjptp6BYf0mHCDZ e74hjfzUH6WrWCwDgSiqLZODb/RA3aqbXOmH880zDKbu5wOq7dXi4G21v8w/d+bmhgYz mWFxOr2BpEKelhR5ztDzaDecS3NBbBcf1ly3h9VyEv9Zu+A/2gnIrR5IJxfRp+caYvJt MHY1b/f13uQNHkvx8ldKKAafSkvhjkGrPkOZ5bZMZXi5t22aniuJSOSIPoisH5s5mvUu tUNiGP7OBtShrplakBnlpmVzXRK1CCmf463BzRasInA6k+NyhRyE3pxXDwe93CqsoB7c HPAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=cToQT62mYU9Tu6+TZ8yPMGhY9W1djGe2Lgkklf5LL4g=; b=bNtslfYVt6tMVoss285IOJiy6nrfjr0AJN1B/lK3HMEfcP62Lg8WzxpIlR7HxFhVIh 3d3jxpBApGt0kabTHnuYfO+kW/DCeZdKwRfKEF7Uvuw3e7/l+ZK/QeI+cMRxajyKwfd/ NMxka4prUBz1OfflIcfx5FPYyoHVGdl9HbYn51j1yORLBlSXcPDyg11Fuih4O8RVV5Va aoO2dDfVmmpXumtIoWoI8y/SxiZ1QrcqChNbgDs26pfSRERxy1VJnnQ0tITw2SImrvmN rsdZ5y14Do1PDcPhbJovUm3aqlIZnWn3hhvBPxJDo6kUtUeEUdClBzYp/nwPN8C1B4fY kwjQ== X-Gm-Message-State: AOUpUlE80Gx1fSDvO4q3Qin7rYDvEBMmZ14ALvPpnJ1EkPXGbpoEm+WH qjsoOzwk1s5B6BmbxpX+4do= X-Google-Smtp-Source: AAOMgpc7AyTjVtkCQYXW2zmNqZwSdUA6DGQfBMISgMaFIHrs4ryxB7c4brsTZQcfmqtTLTpZudk1kA== X-Received: by 2002:a0c:f685:: with SMTP id p5-v6mr2400138qvn.22.1532103510205; Fri, 20 Jul 2018 09:18:30 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3273) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::232 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com gnu.bash.bug:14374 > On 2018 Jul 20 , at 10:40 a, Mr Guiguilebreton = wrote: >=20 > Yes, i now. I test the syntax and the parse error because I = programming a command interpreter bash in C language and I report the = Segmentation Fault for help you to debug. If you want I can help you = free to solve the problem. See https://lists.gnu.org/archive/html/bug-bash/2017-09/msg00048.html. >=20 >=20 > freely, > Guillaume Madec > (+33)6 46 01 00 79 >=20 > 2018-07-20 16:17 GMT+02:00 Clint Hepner : >=20 > > On 2018 Jul 20 , at 9:27 a, Mr Guiguilebreton = wrote: > >=20 > > Hello, check this command in GNU bash, version 3.2.57(1)-release > > (x86_64-apple-darwin17): > >=20 > > ls () { ls -lG;}; ls >=20 > You wrote a recursive function with no base case. Don't do that. >=20 > ls () { command ls -lG; }; ls >=20 > or use an alias for one of its few legitimate use cases >=20 > alias ls=3D'ls -lG' >=20