delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/08/12/14:35:57

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
X-IronPortListener: Outbound_SMTP
MIME-Version: 1.0
Subject: RE: cdargs usage
Date: Tue, 12 Aug 2008 14:34:26 -0400
Message-ID: <31DDB7BE4BF41D4888D41709C476B6570929B2D3@NIHCESMLBX5.nih.gov>
In-Reply-To: <1C42C33F6F3C8B439E455242CA51CCCE8449A8@exchange.wdg>
References: <1C42C33F6F3C8B439E455242CA51CCCE8449A8 AT exchange DOT wdg>
From: "Buchbinder, Barry (NIH/NIAID) [E]" <BBuchbinder AT niaid DOT nih DOT gov>
To: <cygwin AT cygwin DOT com>, "Robert Bram" <rbram AT nextdigital DOT com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id m7CIZuGD005356

Robert Bram wrote on Monday, August 11, 2008 1:30 AM:
> The cdargs manpage says:
>   <ENTER>
>       select current entry.
> 
> But when I go to cdargs browse or list mode, I exit cdargs but the
> directory hasn't changed. Have I misinterpreted how cdargs works in
> Cygwin?  

No, not exactly.  It sounds as if you may have misinterpreted how
cdargs works everywhere. :-)

It seems like your shell doesn't know what directory you have chosen
with cdargs.  A process (e.g., cdargs) cannot by itself change it's
parent's working directory.  The best it can do is to leave the
information (the desired directory) somewhere that the shell can
find.  That is why the cdargs man page includes the following in the
SYNOPSIS.  (You might also read the DESCRIPTION carefully.)

	function cdb () {
		cdargs "$1" && cd "`cat "$HOME/.cdargsresult"`" ;
	}

(Not that I've ever used cdargs ...)

Good luck!

- Barry
  - Disclaimer: Statements made herein are not made on behalf of NIAID.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019