Discussion:
How is the correct technique handle a dir. name under Home with space
(too old to reply)
almahdi
2020-08-23 11:58:16 UTC
Permalink
that needs to be used in such that dir. name is put in a way say:

n="~/foo bar"

if forced to do

$ pushd "$n"

when used in such

$ popd

bash: popd: ~/foo bar: No such file or directory

Any sincere guide to solve is invaluable helpful




--
Sent from: http://gnu-bash.2382.n7.nabble.com/
Robert Elz
2020-08-23 14:14:04 UTC
Permalink
Date: Sun, 23 Aug 2020 04:58:16 -0700 (MST)
From: almahdi <***@gmail.com>
Message-ID: <1598183896339-***@n7.nabble.com>

| that needs to be used in such that dir. name is put in a way say:
|
| n="~/foo bar"

n=~/'foo bar'

or if you prefer n="${HOME}/foo bar" since ~/ is the same as ${HOME}/

kre

Loading...