Skip to main content
9 events
when toggle format what by license comment
Sep 3, 2024 at 4:40 history edited Jim L. CC BY-SA 4.0
added 4 characters in body
Sep 2, 2024 at 7:29 history edited Jim L. CC BY-SA 4.0
added 24 characters in body
Sep 2, 2024 at 7:16 history edited Jim L. CC BY-SA 4.0
deleted 106 characters in body
Sep 2, 2024 at 7:13 comment added Stéphane Chazelas In Korn-like shells, you can use IFS=,; ... "${array[*]}" to join elements of an array with an arbitrary character.
Sep 2, 2024 at 7:12 comment added Stéphane Chazelas Note that (...) is to start a subshell in Bourne-like shells. To group commands, you use { ...; }, though here the Korn-style [[...]] construct also recognises (...) and !, so [[ ! (-d $1 && -w $1 && -x $1) ]] (you also forgot the -x).
Sep 2, 2024 at 7:09 history edited Jim L. CC BY-SA 4.0
deleted 106 characters in body
Sep 2, 2024 at 7:09 comment added Stéphane Chazelas csh had builtin support for testing for writable directories, the Bourne shell didn't. The test utility (and before it and the Bourne shell, the if utility) does. test was later made built in the Bourne shell and some of its clone and aliased to [.
Sep 2, 2024 at 7:07 comment added Stéphane Chazelas bash printf's %q doesn't do JSON encoding.
Sep 2, 2024 at 7:04 history answered Jim L. CC BY-SA 4.0