From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: C K Kashyap Newsgroups: gmane.emacs.help Subject: Re: Can I make "cd" in shell work like eshell? Date: Thu, 28 Aug 2014 12:05:27 +0530 Message-ID: References: <155DEC68569B714B86C2C7075F5EDA9892B1878D@DAKIYA1.pegasus.local> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1409207768 4692 80.91.229.3 (28 Aug 2014 06:36:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Aug 2014 06:36:08 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Doug Lewan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 28 08:36:03 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XMtJR-0001xU-R4 for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Aug 2014 08:36:01 +0200 Original-Received: from localhost ([::1]:34806 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XMtJR-0008NI-Ba for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Aug 2014 02:36:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36233) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XMtJG-0008NA-9h for help-gnu-emacs@gnu.org; Thu, 28 Aug 2014 02:35:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XMtJD-0006Mj-Ov for help-gnu-emacs@gnu.org; Thu, 28 Aug 2014 02:35:50 -0400 Original-Received: from mail-qc0-x232.google.com ([2607:f8b0:400d:c01::232]:40606) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XMtJD-0006Ma-Jd for help-gnu-emacs@gnu.org; Thu, 28 Aug 2014 02:35:47 -0400 Original-Received: by mail-qc0-f178.google.com with SMTP id x13so334116qcv.23 for ; Wed, 27 Aug 2014 23:35:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=Wq20Ndy40dzDH6lFwAbOSNZ5LFyWWvBU6CNSWh0AwBo=; b=xNV/Tq4ghIONmOzmETWxNQy22jPTl5Ewu1Zxhvijf2m+i7Ad7ATtFI08lAC7GQht8x KOm1+Te1uqAZywYjucTWO7J8ila3x2OYDU5IXrTBcnRA95M0DZ62eipBDN8ZSY2IsZU6 n7YasAeeRsmIU1CXs67HCQuuWR0DTtQQrMRNnNIlEmcrpm3LWi3JLYj850lHXnYgOOZm 7SAljN+lcAfhQLeurAsPEOJGporFPTRlWzAhUx0e6ZmdvfvqGCrI9nbdAhy3Sc65lOxb gOjkMoJ9TAFwo2lJ95mXSKQ1h0xH2ZJx8k2FaRgunRMyDuU/Re4akQnVI64aa7D5FxX5 EbNA== X-Received: by 10.140.93.161 with SMTP id d30mr2957174qge.53.1409207747163; Wed, 27 Aug 2014 23:35:47 -0700 (PDT) Original-Received: by 10.229.250.73 with HTTP; Wed, 27 Aug 2014 23:35:27 -0700 (PDT) In-Reply-To: <155DEC68569B714B86C2C7075F5EDA9892B1878D@DAKIYA1.pegasus.local> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c01::232 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:99455 Archived-At: Thanks Doug ... for some reason I find that things are working on its own. Shell cd is indeed changing the current dir :) regards, Kashyap On Wed, Aug 27, 2014 at 8:36 PM, Doug Lewan wrote: > Shell mode tries its best to keep track of your current directory, but it > can't always. > > You can synch shell-mode with the shell inside it by M- (M-x > shell-resync-dirs). > > Be careful though! You have to be at a shell prompt since emacs runs a > command and then uses its output to figure out the current directory. > > ,Doug > Douglas Lewan > Shubert Ticketing > (201) 489-8600 ext 224 or ext 4335 > > "This is a slow pup," he said continuing his ascent. > > > > -----Original Message----- > > From: help-gnu-emacs-bounces+dougl=shubertticketing.com@gnu.org > > [mailto:help-gnu-emacs-bounces+dougl=shubertticketing.com@gnu.org] On > > Behalf Of C K Kashyap > > Sent: Wednesday, 2014 August 27 05:40 > > To: help-gnu-emacs@gnu.org > > Subject: Can I make "cd" in shell work like eshell? > > > > Hi, > > I am doing some windows development these days for which I find "shell" > > more suitable than eshell. > > However, when I do cd and visit a directory in shell and then I do c-x > > - f, > > it does not open in the cd'ed location. How can I make that happen? > > Regards, > > Kashyap >