Is there any special reason for using "$(pwd)" instead of . here?


In case of error you will get absolute paths:
find $(pwd)/idontexist -delete
vs
find ./idontexist -delete


W dniu 3.02.2024 o 17:57, Ulrich Mueller pisze:
On Sat, 03 Feb 2024, Maciej Barć wrote:

+       find "$(pwd)" -maxdepth 1 -iname "nuget.config" -delete ||

Is there any special reason for using "$(pwd)" instead of . here?

+       case "${1}" in

Quotes not needed.

+       if [[ -d "${1}" ]] ; then

Quotes not needed.

--
Have a great day!

~ Maciej XGQT Barć

x...@gentoo.org
Gentoo Linux developer
(dotnet, emacs, math, ml, nim, scheme, sci)
https://wiki.gentoo.org/wiki/User:Xgqt
9B0A 4C5D 02A3 B43C 9D6F D6B1 14D7 4A1F 43A6 AC3C

Attachment: OpenPGP_0x14D74A1F43A6AC3C.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to