Say I have the following
$f1=/some/path
$f2=/some/subpath
$f3=/some/other/subpath
If I try:
test1=${$f1/$f2/${f3:t}}
zsh complains with bad substitution
.
However:
test2=${f3:t}
works well. What am I doing wrong?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communitySay I have the following
$f1=/some/path
$f2=/some/subpath
$f3=/some/other/subpath
If I try:
test1=${$f1/$f2/${f3:t}}
zsh complains with bad substitution
.
However:
test2=${f3:t}
works well. What am I doing wrong?