help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why does a shell script need current directory?


From: Seth David Schoen
Subject: Re: Why does a shell script need current directory?
Date: Fri, 12 Feb 2021 20:55:35 -0800

Peng Yu writes:

> Hi,
> 
> I run the following script in a directory that is deleted (on Mac OS
> X). I see then the following error. Why does bash need to access the
> current directory? Thanks.

It's in order to set the PWD variable (which should always be available
in the environment).

-- 
Seth David Schoen <schoen@loyalty.org>      |  Qué empresa fácil no pensar
     http://www.loyalty.org/~schoen/        |  en un tigre, reflexioné.
  8F08B027A5DB06ECF993B4660FD4F0CD2B11D2F9  |        -- Borges, "El Zahir"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]