Date: Fri, 20 Sep 2013 02:06:12 +0000 From: Philip Lew <topintmrktng777@gmail.com> To: freebsd-questions@freebsd.org Subject: Freebsddiary.org - Integrated marketing help Message-ID: <047d7b3a98fa5ef74f04e6c71d8b@google.com>
next in thread | raw e-mail | index | archive | help
PGRpdiBkaXI9Imx0ciI+PHAgc3R5bGU9Im1hcmdpbi1ib3R0b206MGNtIj48Zm9udCBjb2xvcj0i IzAwMDBmZiIgIA0KZmFjZT0iVmVyZGFuYSwgc2Fucy1zZXJpZiI+PGI+RnJlZWJzZGRpYXJ5Lm9y ZzwvYj48L2ZvbnQ+PGZvbnQgIA0KY29sb3I9IiMwMDAwZmYiPjxmb250IGZhY2U9IlZlcmRhbmEs IHNhbnMtc2VyaWYiPqBUZWFtLDwvZm9udD48L2ZvbnQ+PC9wPg0KPHAgc3R5bGU9Im1hcmdpbi1i b3R0b206MGNtIj48Zm9udCBjb2xvcj0iIzAwMDBmZiI+PGZvbnQgZmFjZT0iVmVyZGFuYSwgIA0K c2Fucy1zZXJpZiI+PGZvbnQ+SQ0KdGhvdWdodCB5b3UgbWlnaHQgbGlrZSB0byBrbm93IHNvbWUg cmVhc29ucyB3aHkgeW91IGFyZSBub3QgZ2V0dGluZw0KZW5vdWdoIFNvY2lhbCBNZWRpYSBhbmQg T3JnYW5pYyBzZWFyY2ggZW5naW5lIHRyYWZmaWMgIA0KZm9yoDxiPkZyZWVic2RkaWFyeS5vcmcu PC9iPjwvZm9udD48L2ZvbnQ+PC9mb250PjwvcD4NCjxwIHN0eWxlPSJtYXJnaW4tYm90dG9tOjBj bSI+PGZvbnQgY29sb3I9IiMwMDAwZmYiPjxmb250IGZhY2U9IlZlcmRhbmEsICANCnNhbnMtc2Vy aWYiPjEuDQpZb3VyIHdlYnNpdGWgPGI+RnJlZWJzZGRpYXJ5Lm9yZ6A8L2I+aXMNCm5vdCByYW5r aW5nIHRvcCBpbiBHb29nbGUgb3JnYW5pYyBzZWFyY2hlcyBmb3IgbWFueSBjb21wZ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zc2libGUNCmluIG1vYmlsZSBwaG9uZSwgdGFibGV0cywg ZGVza3RvcCBldGMuPC9mb250PjwvZm9udD48L3A+DQo8L2Rpdj4NCg== From owner-freebsd-questions@FreeBSD.ORG Fri Sep 20 04:55:13 2013 Return-Path: <owner-freebsd-questions@FreeBSD.ORG> Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 8989DDD9 for <questions@freebsd.org>; Fri, 20 Sep 2013 04:55:13 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4D8242D7C for <questions@freebsd.org>; Fri, 20 Sep 2013 04:55:12 +0000 (UTC) Received: from r56.edvax.de (port-92-195-74-65.dynamic.qsc.de [92.195.74.65]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id B34CB277D4; Fri, 20 Sep 2013 06:55:03 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id r8K4sund002230; Fri, 20 Sep 2013 06:54:56 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Fri, 20 Sep 2013 06:54:56 +0200 From: Polytropon <freebsd@edvax.de> To: william benton <webenton@hotmail.com> Subject: Re: history Message-Id: <20130920065456.212f8636.freebsd@edvax.de> In-Reply-To: <BLU178-W504716B73F40FB80181338C1210@phx.gbl> References: <BLU178-W504716B73F40FB80181338C1210@phx.gbl> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "questions@freebsd.org" <questions@freebsd.org> X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Polytropon <freebsd@edvax.de> List-Id: User questions <freebsd-questions.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-questions>, <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions> List-Post: <mailto:freebsd-questions@freebsd.org> List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, <mailto:freebsd-questions-request@freebsd.org?subject=subscribe> X-List-Received-Date: Fri, 20 Sep 2013 04:55:13 -0000 On Thu, 19 Sep 2013 19:36:43 +0000, william benton wrote: > when I log into free bsd I am in the sh shell. i type history > at the command line and the machine says history not found. > If I type h at the command line it works like i expect the > history command to work. That is strange. The sh shell (system scripting shell and emergency dialog shell in SUM) does not have a history function. % sh $ h h: not found $ history history: not found $ _ > In the csh or tcsh shells history works as well as h. This is correct. A system-wide alias is defined for those shells: alias h 'history 25' It can be found in /etc/csh.cshrc. > why does entering history at the command line work in the csh and > tcsh shells but not in the sh shell. The sh shell (Bourne-like shell, actually a derivate of ash) does not have this functionality. Bash, the Bourne-again shell, supports the "history" function internally, and a "h" alias can be defined for this shell. % bash $ history [...] 501 history $ _ > Considering that all three shells seem to have the same .cshrc file? They don't. The csh and tcsh (system default dialog shell) use the cshrc mechanism (/etc/csh.cshrc for global settings, .cshrc for user settings, and .login and .logout for interactive shells), while sh uses /etc/profile and .profile and .shrc similarly. Bash uses .profile as well as .bash_profile and .bash_login in a comparable manner. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?047d7b3a98fa5ef74f04e6c71d8b>