| bio | website | |
|---|---|---|
| location | Minneapolis, MN | |
| age | ||
| visits | member for | 2 years |
| seen | Apr 4 at 0:17 | |
| stats | profile views | 21 |
|
May 14 |
awarded | Yearling |
|
Mar 23 |
revised |
Delete all but largest file of specific type added 130 characters in body |
|
Mar 20 |
comment |
Is it possible to use indirection for setting variables? This isn't a good method, but your note about controlling variable names within a program is right on. |
|
Mar 20 |
revised |
What does ${1+“$@”} mean in a shell script, and how does it differ from “$@”? added 872 characters in body |
|
Mar 20 |
answered | Delete all but largest file of specific type |
|
Mar 19 |
comment |
What does ${1+“$@”} mean in a shell script, and how does it differ from “$@”? @StephaneChazelas Thanks for the link. I've only been subscribed to austin-group-l for about a year... I found their system difficult to search for relevant historical discussions. |
|
Mar 19 |
comment |
What does ${1+“$@”} mean in a shell script, and how does it differ from “$@”? @StephaneChazelas Interesting about the eval. I'd think that would likely cause a problem when the Perl comes across it. I would never use it for this purpose. WRT set -u, can't reproduce in mksh (only shell listed there in which it says it hasn't been fixed). WRT checking unset vars, I typically use ! ${var+false} for POSIX, which performs best in most shells especially in the true case. ${var+:} false is another alternative. |
|
Mar 19 |
revised |
What does ${1+“$@”} mean in a shell script, and how does it differ from “$@”? deleted 189 characters in body |
|
Mar 19 |
comment |
What does ${1+“$@”} mean in a shell script, and how does it differ from “$@”? Ah I see. <3 Mascheck pages. |
|
Mar 19 |
comment |
What does ${1+“$@”} mean in a shell script, and how does it differ from “$@”? Can't reproduce in Heirloom. Probably not applicable to Solaris. |
|
Mar 19 |
revised |
What does ${1+“$@”} mean in a shell script, and how does it differ from “$@”? added 159 characters in body |
|
Mar 19 |
revised |
What does ${1+“$@”} mean in a shell script, and how does it differ from “$@”? added 247 characters in body |
|
Mar 19 |
answered | What does ${1+“$@”} mean in a shell script, and how does it differ from “$@”? |
|
Feb 23 |
comment |
Shell script Variable Structure Thanks for showing the correct methods. First example should use ${#snapshot[@]}, ideally (( ! ${#snapshot[@]} )), though in this specific case testing the 0th element will give the illusion of working anyway. |
|
Jan 28 |
revised |
How to stop the find command after first match? added 31 characters in body |
|
Jan 28 |
answered | How to stop the find command after first match? |
|
Jan 28 |
revised |
How to get subshell's PID in Korn Shell (equivalent of $BASHPID) added 84 characters in body |
|
Jan 28 |
answered | How to get subshell's PID in Korn Shell (equivalent of $BASHPID) |
|
Jan 23 |
answered | $BASHPID And $$ differ in some cases |
|
Dec 19 |
awarded | Critic |