[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pwd and prompt don't update after deleting current working directory
From: |
Chet Ramey |
Subject: |
Re: pwd and prompt don't update after deleting current working directory |
Date: |
Fri, 12 Jul 2024 09:10:49 -0400 |
User-agent: |
Mozilla Thunderbird |
On 7/11/24 9:53 PM, David Hedlund wrote:
Thanks, Lawrence! I found this discussion helpful and believe it would be a
valuable feature to add. Can I submit this as a feature request?
I'm not going to add this. It's not generally useful for interactive
shells, and dangerous for non-interactive shells.
If this is a recurring problem for you, I suggest you write a shell
function to implement the behavior you want and run it from
PROMPT_COMMAND.
That behavior could be as simple as
pwd -P >/dev/null 2>&1 || cd ..
--
``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/
OpenPGP_signature.asc
Description: OpenPGP digital signature
- pwd and prompt don't update after deleting current working directory, David Hedlund, 2024/07/11
- Re: pwd and prompt don't update after deleting current working directory, Lawrence Velázquez, 2024/07/11
- Re: pwd and prompt don't update after deleting current working directory, David Hedlund, 2024/07/11
- Re: pwd and prompt don't update after deleting current working directory, Lawrence Velázquez, 2024/07/11
- Re: pwd and prompt don't update after deleting current working directory,
Chet Ramey <=
- Re: pwd and prompt don't update after deleting current working directory, David Hedlund, 2024/07/16
- Re: pwd and prompt don't update after deleting current working directory, Chet Ramey, 2024/07/16
- Re: pwd and prompt don't update after deleting current working directory, Lawrence Velázquez, 2024/07/16
- Re: pwd and prompt don't update after deleting current working directory, David Hedlund, 2024/07/16
- Re: pwd and prompt don't update after deleting current working directory, Martin D Kealey, 2024/07/19
- Re: pwd and prompt don't update after deleting current working directory, David Hedlund, 2024/07/19
Re: pwd and prompt don't update after deleting current working directory, Robert Elz, 2024/07/11
Re: pwd and prompt don't update after deleting current working directory, David, 2024/07/11