Timeline for Bash script that takes multiple path arguments and checks if files can be successfully created there
Current License: CC BY-SA 4.0
12 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 4, 2024 at 10:18 | vote | accept | teeeeee | ||
| Sep 2, 2024 at 13:46 | comment | added | Wastrel |
avail_path2=1; $2/checkalivefile In bash, 0 is true and 1 is false by convention. Also, "$2/checkalivefile" will try to execute that file and return a "permission denied" message. You can use "shift" in a loop to walk through the arguments.
|
|
| Sep 2, 2024 at 13:35 | comment | added | Ed Morton | Please don't multipost - stackoverflow.com/questions/78938442/…. | |
| Sep 2, 2024 at 10:44 | comment | added | Toby Speight |
Don't interpolate variables into printf format string like that - always use %s (or %q) in the format string and provide the variable as a separate argument.
|
|
| Sep 2, 2024 at 7:37 | history | became hot network question | |||
| Sep 2, 2024 at 7:04 | answer | added | Jim L. | timeline score: 2 | |
| Sep 2, 2024 at 6:18 | answer | added | Stéphane Chazelas | timeline score: 3 | |
| Sep 2, 2024 at 4:26 | answer | added | kos | timeline score: 1 | |
| Sep 2, 2024 at 2:09 | answer | added | rr0ss0rr | timeline score: 0 | |
| Sep 2, 2024 at 1:17 | answer | added | Jetchisel | timeline score: 1 | |
| Sep 2, 2024 at 0:53 | answer | added | Stephen Harris | timeline score: 2 | |
| Sep 1, 2024 at 23:36 | history | asked | teeeeee | CC BY-SA 4.0 |