[Show "Revision History"] [Show "General Page Infos"] [Show "Page hits and edits"]

Revision History

Showing page edit history entries from 1 to 70 out of 70 entries total. (5 | 10 | 25 | 50 | 100 | 200 items per page)

# Date Size Editor Comment Action
70 2025-02-09 13:06:43 12150 to previous emanuele6 remove -- from trap -- const view
69 2025-02-09 13:05:50 12156 to previous emanuele6 I missed some -- view
68 2025-02-09 12:59:56 12147 to previous emanuele6 um--: of course it is not redundant after "$tempdir" if is set from the $TMPDIR environment variable; also don't use kill -SIG in POSIX ex: not POSIX, optional XSI (legacy) ext; no trap - NUM for same view
67 2025-02-08 23:49:06 12102 to previous geirha if we let awk generate 10 random numbers from a single seed, we don't need the sleep 1 view
66 2025-02-08 00:25:21 12329 to previous GreyCat additional randomness opportunities view
65 2025-02-07 14:40:10 10649 to previous geirha mkdir -d -> mktemp -d view
64 2025-02-07 04:24:42 10646 to previous GreyCat Restructure the entire page. Mostly, move things around so the least bad answers are first. Add a set -C solution. view
63 2025-02-03 20:26:26 7319 to previous 81 Mark portable code with 'Posix shell' view
62 2025-02-03 20:20:30 7292 to previous 81 Platform soecific: Add mink to macos 2019 Darwin mktemp discussion view
61 2025-02-03 19:42:23 7184 to previous 81 Preface: adjust m4 and refer to old versions view
60 2025-02-03 19:40:08 7219 to previous 81 Preface: Add stackexchange link to mktemp discussion and POSIX view
59 2025-02-03 19:26:38 7151 to previous 81 M4: remover alternative code, more complex and less readable with env HOME=$TMPDIR view
58 2025-02-03 19:22:51 7444 to previous 81 M4: adjust paragraph and wording view
57 2025-02-03 19:14:54 7462 to previous 81 Solaris: refer to as a legacy system if there is no temp file making command view
56 2025-02-03 19:13:03 7459 to previous 81 Preface: mktemp from GNU coreutils since 2007 view
55 2025-02-03 19:06:40 7432 to previous 81 Rewrite preface. Point to mktemp view
54 2025-02-03 17:46:28 7278 to previous 81 Simplified. Remove superfluous '--', use simple echo where applicable, use uppercase Die() to prevent clash with any existing command. view
53 2025-02-03 17:29:06 7362 to previous 81 mktemp is rare not to found in typical cases view
52 2025-02-03 17:27:15 7347 to previous 81 Reword preface. mktemp is in POSIX view
51 2025-01-24 06:17:21 7247 to previous larryv fixed edit conflict view
50 2025-01-24 06:14:51 7683 to previous 81 Correct moinmoin syntax for code }}} view
49 2025-01-24 06:12:45 7247 to previous larryv undid revs 45-48, which make the first example (which isn't even supposed to be used) more complicated and worse view
48 2025-01-24 06:03:55 7389 to previous 81 Mitigate race condition by prefixing the varisble name by USER etc. view
47 2025-01-24 05:50:04 7252 to previous 81 trap: Prefer readable POSIX signal names instead of raw numbers view
46 2025-01-24 05:46:18 7238 to previous 81 simplify without "--" view
45 2025-01-24 05:44:45 7241 to previous 81 Remove unneeded arg "--", not applicable for the example that uses simple file name view
44 2023-04-28 01:07:11 7247 to previous larryv added user-friendly anchors view
43 2022-11-29 09:49:32 7134 to previous emanuele6 This was not actually correct because cd's CDPATH rules are different from source's PATH rules. having a / in the target is not enough to disable CDPATH behaviour. use ormaaj's nicer solution. :D view
42 2022-10-04 02:08:19 7136 to previous emanuele6 I came up with a simpler and portable solution! :D (i also replaced / with // in some places to avoid problems if TMPDIR is /) view
41 2022-10-04 01:51:46 7427 to previous emanuele6 use cd safely... :( view
40 2022-03-07 11:04:13 7134 to previous emanuele6 move here string redirections to the end of the command, and undo inconsistent change. view
39 2022-03-07 05:08:47 7141 to previous ormaaj un-nest herestring. `$(<<<foo)` is actually non-broken in some shells, thus confusing. view
38 2022-02-24 00:38:16 7134 to previous emanuele6 indent with 2 spaces instead of 3 for consistency view
37 2022-02-24 00:25:49 7136 to previous emanuele6 the m4 approach makes more sense as its own section rather than as a part of the "Use platform-specific tools" section view
36 2022-02-24 00:20:14 7118 to previous emanuele6 add syntax highlighting view
35 2022-02-24 00:19:57 7102 to previous emanuele6 add a bunch of -- view
34 2022-02-24 00:16:18 7066 to previous emanuele6 add safe arbitrary $TMPDIR solution for the m4 approach view
33 2022-02-24 00:09:45 6752 to previous emanuele6 - was in the wrong place + remove the "${TMPDIR}" injection since it is unsafe e.g. TEMPDIR='syscmd(date >&2)' view
32 2022-02-23 23:39:11 6777 to previous emanuele6 POSIX m4 requires the file argument view
31 2022-02-23 23:38:08 6775 to previous emanuele6 unset => unset -v view
30 2021-07-24 15:00:25 6766 to previous GreyCat m4 mkstemp (based on contribution by earnestly), and other additions view
29 2016-01-08 21:25:07 5502 to previous GreyCat embarrassing typo (mkdir not mktemp) view
28 2015-12-23 12:27:15 5503 to previous geirha more quotes view
27 2015-12-23 12:23:30 5499 to previous geirha POSIX does not guarantee that the EXIT trap is triggered when signaled, so a trap is required for each signal. view
26 2015-12-23 12:19:38 5296 to previous geirha replacing echos with printfs, and fixing a typoed variable name view
25 2015-12-21 16:45:58 5285 to previous GreyCat Add a useful answer, I hope. Remove much cruft. Add a note for historical awks. view
24 2014-02-19 21:55:18 6542 to previous 109 [minor] igli: reduce comment view
23 2014-02-19 21:52:56 6590 to previous 109 [minor] igli: use -n so as not to access fs: incorrect if already existing. view
22 2014-02-19 21:48:07 6579 to previous 109 igli: add usage of TMPDIR and trap to POSIX-sh variant. add -n to [ ] in POSIX variant using mktemp as unsafe without it. view
21 2014-02-19 21:33:22 6496 to previous 109 [minor] igli: remove surplus quotes in assignment to match previous code. view
20 2013-01-11 04:00:34 6498 to previous 82 igli: discussion. lose the unportable ;) view
19 2013-01-11 03:56:50 6494 to previous 82   view
18 2013-01-11 00:14:13 5881 to previous GreyCat Fixes.... view
17 2013-01-10 23:17:22 5905 to previous 82 igli: typo extra ' in command (though it still worked in busybox;) view
16 2013-01-10 23:13:04 5906 to previous 82 igli: use printf and awk -v to allow 32-bit pid on 14-char fs view
15 2013-01-09 12:56:02 5751 to previous 82 use $$ and awk (strip leading 0.) -- igli view
14 2011-09-07 14:09:29 5191 to previous i577BBC60 changed backticks to $(...) view
13 2010-09-16 15:42:43 5190 to previous prs lowercase variable names to adhere to convention view
12 2009-10-03 21:13:24 5178 to previous garner Add using random numbers from awk view
11 2009-06-27 20:08:19 4788 to previous localhost Minor changes made, somewhat better presentation to the user view
10 2009-05-08 15:34:21 4759 to previous GreyCat remove spurious blank line view
9 2009-04-11 00:56:36 4761 to previous 102   view
8 2009-04-11 00:50:21 4725 to previous 102   view
7 2009-04-11 00:45:22 4721 to previous 102 Excuse my English :-) view
6 2008-11-22 14:09:49 2735 to previous localhost converted to 1.6 markup view
5 2008-05-21 20:19:42 2734 to previous GreyCat expand view
4 2008-01-15 18:45:15 1465 to previous GreyCat also, 14-character filename limits.... view
3 2007-07-24 20:12:18 1280 to previous GreyCat comment added. looks promising at first glance. view
2 2007-07-24 18:54:13 1044 to previous client-86-27-236-218   view
1 2007-05-02 23:56:06 459 redondos   view