Eric Lesh <eclesh@ucla.edu> writes:The problem with the above is that it reacts strangely to multiline options. Should be much better (and faster on shells without builtin printf) to use case "$x" in [+-]*) sed -i -e ... ;; *) echo "'$x' is not ... esac and this runs portably without forking on shells that are 30 years old. Shell script programmers _really_ should know "case" inside out. Also, instead of 'for x in "$@"' one can just write "for x' \ does not need to be escaped in double quotes except before \, $ and `. You can write sed -i -e "s,^\($p[[:space:]]*.*\)\$,\1 #$x," "$series" and that's fine. -- David Kastrup - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Jens Axboe | Re: [BUG] New Kernel Bugs |
| KAMEZAWA Hiroyuki | Re: 2.6.24-rc3-mm1 |
| Ingo Molnar | Re: [Announce] [patch] Modular Scheduler Core and Completely Fair Scheduler [CFS] |
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
git: | |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Jarek Poplawski | Re: Data corruption issue with splice() on 2.6.27.10 |
| Patrick McHardy | Re: [GIT]: Networking |
