Path: csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: Chet Ramey Newsgroups: gnu.bash.bug Subject: Re: Add sleep builtin Date: Mon, 20 Aug 2018 19:35:33 -0400 Organization: ITS, Case Western Reserve University Lines: 20 Approved: bug-bash@gnu.org Message-ID: References: Reply-To: chet.ramey@case.edu NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: usenet.stanford.edu 1534808145 24241 208.118.235.17 (20 Aug 2018 23:35:45 GMT) X-Complaints-To: action@cs.stanford.edu Cc: chet.ramey@case.edu To: konsolebox , bug-bash Envelope-to: bug-bash@gnu.org X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:reply-to:cc:subject:to:references:from :organization:message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=pVM/111ETAmFsTNjgF5bvP2FQ2qVsHNWGDpXqCXpAI0=; b=TJhCo8Bris3zRyxcTtdr6uTZgeptmleV+uPUo9YCcQBaAG1rFblclNz3xp5gjy0bDQ 8ELmpyDNPnFzhjMmHdhIFeUihGUfFor23pFBnk8hAcRDZPxnTVzY7uwNGS+X22MoflM0 2GBOdx3v3k8jP5h77tgNJ1CrIHvjHDMR37IjDskjm2E/npyrZltFNoqpZyWvcwZt5poG Adrj5HmaPrpoOHi83CLzB0u1EMomkINFb729rfi2fB8aUJ4JaFgM2bABVPTp8K/d6Avs UWFstN4z+qXn3hU2AZl6/AFlhrO7aXajO6PZaNG7xYcL/M12a4J0dMKIK2i/ukFhGYkp QvDA== X-Gm-Message-State: AOUpUlGruiiMfT51KZ98dTTQVo3rHS/b9ROsPIj4G+iKMUIXsy8IWnHk IaKs2RQNM7js5/cCKeRqX1nFs0a+ko4AYiZgHvGLRs3cN4nTzA9O8+OwbXXqghy4v798wJhKAcy xSs+90TyveQU= X-Received: by 2002:a24:c2c2:: with SMTP id i185-v6mr15778373itg.76.1534808138949; Mon, 20 Aug 2018 16:35:38 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwOzsXbW5EXa2F8PYL5CV0mJ6JWAqUaxkDLvstQZzWFo+7p4C5+G7xNER9pwTU4YG0DWaw06A== X-Received: by 2002:a24:c2c2:: with SMTP id i185-v6mr15778367itg.76.1534808138782; Mon, 20 Aug 2018 16:35:38 -0700 (PDT) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 In-Reply-To: Content-Language: en-US X-Junkmail-Status: score=7/90, host=mpv2-2015.case.edu X-Junkmail-PrAS-Raw: score=7/90, refid=2.7.2:2018.8.20.225116:17:7.944, ip=, rules=__YOUTUBE_RCVD, __HAS_REPLYTO, __HAS_CC_HDR, __SUBJ_REPLY, __BOUNCE_CHALLENGE_SUBJ, __BOUNCE_NDR_SUBJ_EXEMPT, __SUBJ_ALPHA_END, __TO_MALFORMED_2, __TO_NAME, __REFERENCES, __HAS_FROM, FROM_EDU_TLD, __HAS_MSGID, __SANE_MSGID, DATE_TZ_NA, __USER_AGENT, __MOZILLA_USER_AGENT, __MIME_VERSION, __IN_REP_TO, __CT, __CT_TEXT_PLAIN, __CTE, __REPLYTO_SAMEAS_FROM_ADDY, __REPLYTO_SAMEAS_FROM_ACC, __FROM_DOMAIN_IN_ANY_CC1, __FROM_DOMAIN_IN_ANY_CC2, __REPLYTO_SAMEAS_FROM_DOMAIN, __ANY_URI, __URI_WITH_PATH, __URI_NO_WWW, __CP_URI_IN_BODY, __SUBJ_ALPHA_NEGATE, __URI_IN_BODY, __URI_NOT_IMG, __FORWARDED_MSG, __NO_HTML_TAG_RAW, BODYTEXTP_SIZE_3000_LESS, BODY_SIZE_800_899, __MIME_TEXT_P1, __MIME_TEXT_ONLY, __URI_NS, HTML_00_01, HTML_00_10, BODY_SIZE_5000_LESS, IN_REP_TO, MSG_THREAD, __FROM_DOMAIN_IN_RCPT, MULTIPLE_REAL_RCPTS, LEGITIMATE_SIGNS, __SINGLE_URI_TEXT, [TRUNCATED], so=2010-03-03 19:42:08, dmn=2016-08-03-0138 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 129.22.103.227 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:14514 On 8/19/18 10:25 AM, konsolebox wrote: > Hi Chet, > > The sleep command is often used in loops and using the external sleep > is expensive. Perhaps we can add the sleep builtin but have it > disabled by default to avoid syntax conflict with the external one. I don't think there's a problem with a `syntax conflict' as long as any builtin sleep accepts a superset of the POSIX options for sleep(1). I'm going to wait until after bash-5.0 is released before considering this. In the meantime, there is the loadable version, which is now built and installed by default when you run `make install'. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/