Re: Backtick versus $()

2011-03-16 Thread Andres Perera
Dear Sir/Madam, Your email was unable reach the intended person that you were sending it to. For more information on our business please click on the following link: Click here for our website http://www.xpbargains.net We look forward to your continued business in the future. Regards,

Re: Backtick versus $()

2011-03-14 Thread Andres Perera
Dear Sir/Madam, Your email was unable reach the intended person that you were sending it to. For more information on our business please click on the following link: Click here for our website http://www.xpbargains.net We look forward to your continued business in the future. Regards,

Re: Backtick versus $()

2011-03-03 Thread Thorsten Glaser
Rob Farmer rfarmer at predatorlabs.net writes: LOL - how hypocritical. This thread was four days dead then suddenly two people show up and start pushing this mksh shell, which seems to Sorry for reviving again, but I only show up as I have an “alert” set to mksh to know when it’s being

Re: Backtick versus $()

2011-03-03 Thread Andres Perera
On Thu, Mar 3, 2011 at 11:58 AM, Thorsten Glaser t...@mirbsd.org wrote: Rob Farmer rfarmer at predatorlabs.net writes: LOL - how hypocritical. This thread was four days dead then suddenly two people show up and start pushing this mksh shell, which seems to Sorry for reviving again, but I

Re: Backtick versus $()

2011-02-25 Thread perryh
Thorsten Glaser t...@mirbsd.org wrote: tcsh is not a shell ... http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/ If you are _that_ strongly opposed to (t)csh, sir, I submit that you are wasting your time reading and posting to a FreeBSD mailing list.

Re: Backtick versus $()

2011-02-25 Thread Chris Rees
On 25 February 2011 02:55, Andres Perera andre...@zoho.com wrote: On Thu, Feb 24, 2011 at 9:54 PM, Chad Perrin per...@apotheon.com wrote: I apologize for the grammaticall brokenness of that sentence. maybe you should spam the hundreds of subscribers of this mailing list with this line:

Re: Backtick versus $()

2011-02-25 Thread Andres Perera
On Fri, Feb 25, 2011 at 8:24 AM, Chris Rees utis...@gmail.com wrote: On 25 February 2011 02:55, Andres Perera andre...@zoho.com wrote: On Thu, Feb 24, 2011 at 9:54 PM, Chad Perrin per...@apotheon.com wrote: I apologize for the grammaticall brokenness of that sentence. maybe you should spam

Re: Backtick versus $()

2011-02-25 Thread Chris Rees
On 25 February 2011 18:02, Andres Perera andre...@zoho.com wrote: On Fri, Feb 25, 2011 at 8:24 AM, Chris Rees utis...@gmail.com wrote: On 25 February 2011 02:55, Andres Perera andre...@zoho.com wrote: On Thu, Feb 24, 2011 at 9:54 PM, Chad Perrin per...@apotheon.com wrote: I apologize for the

Re: Backtick versus $()

2011-02-24 Thread Thorsten Glaser
Andres Perera andres.p at zoho.com writes: Nowadays all shells supports $() so I advise you to use it :). no, not all shells support $() They do, it’s mandated by POSIX. There’s no reason to support the accidentally non-combining accent gravis (so-called “backtick”¹) any more, unless you

Re: Backtick versus $()

2011-02-24 Thread Andres Perera
On Thu, Feb 24, 2011 at 3:36 PM, Thorsten Glaser t...@mirbsd.org wrote: Andres Perera andres.p at zoho.com writes: Nowadays all shells supports $() so I advise you to use it :). no, not all shells support $() They do, it’s mandated by POSIX. There’s no reason to support the accidentally

Re: Backtick versus $()

2011-02-24 Thread Thorsten Glaser
Andres Perera andres.p at zoho.com writes: mandated by posix and reality usually aren't in sync, as i'm sure you know by In this case, closely enough. now since you pointed out solaris It’s just /bin/sh on long outdated versions (newer ones, both from Horracle and not, have ATT ksh93 there

Re: Backtick versus $()

2011-02-24 Thread Rob Farmer
On Thu, Feb 24, 2011 at 12:51 PM, Thorsten Glaser t...@mirbsd.org wrote: Andres Perera andres.p at zoho.com writes: mandated by posix and reality usually aren't in sync, as i'm sure you know by In this case, closely enough. now since you pointed out solaris It’s just /bin/sh on long

Re: Backtick versus $()

2011-02-24 Thread Thorsten Glaser
Rob Farmer rfarmer at predatorlabs.net writes: Have you used the default FreeBSD shell (tcsh) recently? tcsh is not a shell. Well, it’s an interactive command line interpreter, not a bad one compared to what else is offered at that, but… http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/

Re: Backtick versus $()

2011-02-24 Thread Jerry
On Thu, 24 Feb 2011 13:02:22 -0800 Rob Farmer rfar...@predatorlabs.net articulated: Have you used the default FreeBSD shell (tcsh) recently? [rfarmer@sapphire] ~ echo $(date ) Illegal variable name. Since I use Bash as my default shell, I never suffer from that problem. I was wondering if

Re: Backtick versus $()

2011-02-24 Thread Andres Perera
On Thu, Feb 24, 2011 at 4:45 PM, Jerry freebsd.u...@seibercom.net wrote: On Thu, 24 Feb 2011 13:02:22 -0800 Rob Farmer rfar...@predatorlabs.net articulated: Have you used the default FreeBSD shell (tcsh) recently? [rfarmer@sapphire] ~ echo $(date ) Illegal variable name. Since I use Bash

Re: Backtick versus $()

2011-02-24 Thread Rob Farmer
On Thu, Feb 24, 2011 at 1:05 PM, Thorsten Glaser t...@mirbsd.org wrote: Rob Farmer rfarmer at predatorlabs.net writes: Have you used the default FreeBSD shell (tcsh) recently? tcsh is not a shell. Well, it’s an interactive command line interpreter, not a bad one compared to what else is

Re: Backtick versus $()

2011-02-24 Thread Thorsten Glaser
Rob Farmer dixit: (New) people will still copy and paste commands into an interactive tcsh That’s a FreeBSD® specific issue though. Other operating systems did the sensible thing ages ago ☺ Even then, I tend to disagree here. There’s the common use of ‘% ’ and ‘$ ’ (and ‘# ’ but we use sudo(8)

Re: Backtick versus $()

2011-02-24 Thread Chad Perrin
On Thu, Feb 24, 2011 at 09:36:37PM +, Thorsten Glaser wrote: Rob Farmer dixit: (New) people will still copy and paste commands into an interactive tcsh That’s a FreeBSD® specific issue though. Other operating systems did the sensible thing ages ago ☺ What exactly is the sensible

Re: Backtick versus $()

2011-02-24 Thread ill...@gmail.com
On 24 February 2011 16:05, Thorsten Glaser t...@mirbsd.org wrote: Rob Farmer rfarmer at predatorlabs.net writes: Have you used the default FreeBSD shell (tcsh) recently? tcsh is not a shell. Well, it’s an interactive command line interpreter, not a bad one compared to what else is offered

Re: Backtick versus $()

2011-02-24 Thread Thorsten Glaser
Chad Perrin perrin at apotheon.com writes: That’s a FreeBSD® specific issue though. Other operating systems did the sensible thing ages ago ☺ What exactly is the sensible thing? http://cvsweb.netbsd.org/bsdweb.cgi/src/usr.sbin/user/ user.c.diff?r1=1.116r2=1.117only_with_tag=MAIN

Re: Backtick versus $()

2011-02-24 Thread Chad Perrin
On Thu, Feb 24, 2011 at 09:59:40PM +, Thorsten Glaser wrote: Chad Perrin perrin at apotheon.com writes: That’s a FreeBSD® specific issue though. Other operating systems did the sensible thing ages ago ☺ What exactly is the sensible thing?

Re: Backtick versus $()

2011-02-24 Thread Thorsten Glaser
Chad Perrin perrin at apotheon.com writes: 1. You think some measure of popularity of a decision makes it correct. No. 2. You don't like (t)csh. No. I just point out it’s not a suitable scripting shell. 3. You think your opinions are so self-evident that everybody will just immediately

Re: Backtick versus $()

2011-02-24 Thread Chip Camden
Quoth Chad Perrin on Thursday, 24 February 2011: snip What we have not yet determined is: 1. Is it a good idea to replace (t)csh? -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] Though I dislike the OP's dismissal of backticks, I must admit that I would

Re: Backtick versus $()

2011-02-24 Thread Polytropon
On Thu, 24 Feb 2011 13:24:37 -0800, Rob Farmer rfar...@predatorlabs.net wrote: (New) people will still copy and paste commands into an interactive tcsh, so it is a good idea to be compatible when posting stuff to the mailing lists, etc. if possible. There was something on the ports@ list a

Re: Backtick versus $()

2011-02-24 Thread Chad Perrin
On Thu, Feb 24, 2011 at 10:34:25PM +, Thorsten Glaser wrote: Chad Perrin perrin at apotheon.com writes: 1. You think some measure of popularity of a decision makes it correct. No. Why do you substitute others' email messages for an actual, direct response to my question, then?

Re: Backtick versus $()

2011-02-24 Thread Matthew Seaman
On 24/02/2011 22:39, Chip Camden wrote: I suppose I could change root to /bin/sh, but that doesn't even have command recall. set -o emacs Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard

Re: Backtick versus $()

2011-02-24 Thread Chip Camden
Quoth Matthew Seaman on Thursday, 24 February 2011: On 24/02/2011 22:39, Chip Camden wrote: I suppose I could change root to /bin/sh, but that doesn't even have command recall. set -o emacs Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7

Re: Backtick versus $()

2011-02-24 Thread Chad Perrin
On Thu, Feb 24, 2011 at 02:39:24PM -0800, Chip Camden wrote: Quoth Chad Perrin on Thursday, 24 February 2011: What we have not yet determined is: 1. Is it a good idea to replace (t)csh? Though I dislike the OP's dismissal of backticks, I must admit that I would prefer that the

Re: Backtick versus $()

2011-02-24 Thread Polytropon
On Thu, 24 Feb 2011 14:58:34 -0800, Chip Camden sterl...@camdensoftware.com wrote: Thanks for that -- though I'll go with: set -o vi TYVM. I didn't know /bin/sh supported those modes. It's hardly known as /bin/sh is _not_ used for interactive comunication regularly, as it's basically

Re: Backtick versus $()

2011-02-24 Thread Chad Perrin
On Thu, Feb 24, 2011 at 11:40:44PM +0100, Polytropon wrote: On Thu, 24 Feb 2011 13:24:37 -0800, Rob Farmer rfar...@predatorlabs.net wrote: I've read it before. Who hasn't? I haven't. :-) While reading it, just keep this in mind: It's about programming in csh. It's not about using csh

Re: Backtick versus $()

2011-02-24 Thread Andres Perera
On Thu, Feb 24, 2011 at 5:40 PM, Chad Perrin per...@apotheon.com wrote: 1. Is it a good idea to replace (t)csh? mksh is better than tcsh for everything ___ freebsd-questions@freebsd.org mailing list

Re: Backtick versus $()

2011-02-24 Thread Polytropon
On Thu, 24 Feb 2011 15:54:25 -0700, Chad Perrin per...@apotheon.com wrote: On Thu, Feb 24, 2011 at 11:40:44PM +0100, Polytropon wrote: On Thu, 24 Feb 2011 13:24:37 -0800, Rob Farmer rfar...@predatorlabs.net wrote: I've read it before. Who hasn't? I haven't. :-) While reading

Re: Backtick versus $()

2011-02-24 Thread Michelle Konzack
Hello Andres Perera, Am 2011-02-20 22:19:49, hacktest Du folgendes herunter: that's not true :-D echo `echo 1\`echo 2\\\`echo 3\\\`echo 4\\\`\\\`\`` Backslash Orgies! Thanks, Greetings and nice Day/Evening Michelle Konzack -- # Debian GNU/Linux Consultant

RE: Backtick versus $()

2011-02-24 Thread Gary Gatten
-Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Polytropon Sent: Thursday, February 24, 2011 5:13 PM To: Chad Perrin Cc: freebsd-questions@freebsd.org Subject: Re: Backtick versus $() On Thu, 24 Feb 2011 15:54:25

Re: Backtick versus $()

2011-02-24 Thread Chad Perrin
On Thu, Feb 24, 2011 at 06:42:18PM -0430, Andres Perera wrote: On Thu, Feb 24, 2011 at 5:40 PM, Chad Perrin per...@apotheon.com wrote: 1. Is it a good idea to replace (t)csh? mksh is better than tcsh for everything Thank you for your opinion, but it's just an opinion with no explanation,

Re: Backtick versus $()

2011-02-24 Thread Chad Perrin
On Thu, Feb 24, 2011 at 05:18:03PM -0600, Gary Gatten wrote: Everyone is wrong! pfmsh is the best at everything, period. It does everything you can possibly think of today and tomorrow. It doesn't require any upgrades, ever. It's 100% secure. It doesn't use any memory or other resources,

Re: Backtick versus $()

2011-02-24 Thread Andres Perera
On Thu, Feb 24, 2011 at 6:48 PM, Gary Gatten ggat...@waddell.com wrote: Everyone is wrong! pfmsh is the best at everything, period.  It does everything you can possibly think of today and tomorrow.  It doesn't require any upgrades, ever.  It's 100% secure.  It doesn't use any memory or other

Re: Backtick versus $()

2011-02-24 Thread Chip Camden
Quoth Gary Gatten on Thursday, 24 February 2011: Everyone is wrong! pfmsh is the best at everything, period. It does everything you can possibly think of today and tomorrow. It doesn't require any upgrades, ever. It's 100% secure. It doesn't use any memory or other resources, $hit, it

Re: Backtick versus $()

2011-02-24 Thread Chad Perrin
On Thu, Feb 24, 2011 at 07:00:11PM -0430, Andres Perera wrote: On Thu, Feb 24, 2011 at 6:48 PM, Gary Gatten ggat...@waddell.com wrote: Everyone is wrong! pfmsh is the best at everything, period.  It does everything you can possibly think of today and tomorrow.  It doesn't require any

Re: Backtick versus $()

2011-02-24 Thread Chad Perrin
On Thu, Feb 24, 2011 at 03:32:04PM -0800, Chip Camden wrote: Quoth Gary Gatten on Thursday, 24 February 2011: Everyone is wrong! pfmsh is the best at everything, period. It does everything you can possibly think of today and tomorrow. It doesn't require any upgrades, ever. It's 100%

Re: Backtick versus $()

2011-02-24 Thread Polytropon
On Thu, 24 Feb 2011 17:18:03 -0600, Gary Gatten ggat...@waddell.com wrote: Everyone is wrong! pfmsh is the best at everything, period. It does everything you can possibly think of today and tomorrow. It doesn't require any upgrades, ever. It's 100% secure. It doesn't use any memory or

Re: Backtick versus $()

2011-02-24 Thread Andres Perera
On Thu, Feb 24, 2011 at 6:54 PM, Chad Perrin per...@apotheon.com wrote: On Thu, Feb 24, 2011 at 07:00:11PM -0430, Andres Perera wrote: On Thu, Feb 24, 2011 at 6:48 PM, Gary Gatten ggat...@waddell.com wrote: Everyone is wrong! pfmsh is the best at everything, period.  It does everything you

RE: Backtick versus $()

2011-02-24 Thread Gary Gatten
-Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Chad Perrin Sent: Thursday, February 24, 2011 5:26 PM To: freebsd-questions@freebsd.org Subject: Re: Backtick versus $() On Thu, Feb 24, 2011 at 03:32:04PM -0800, Chip

Re: Backtick versus $()

2011-02-24 Thread Chip Camden
Quoth Chad Perrin on Thursday, 24 February 2011: On Thu, Feb 24, 2011 at 03:32:04PM -0800, Chip Camden wrote: Quoth Gary Gatten on Thursday, 24 February 2011: Everyone is wrong! pfmsh is the best at everything, period. It does everything you can possibly think of today and tomorrow.

Re: Backtick versus $()

2011-02-24 Thread Andres Perera
On Thu, Feb 24, 2011 at 7:12 PM, Polytropon free...@edvax.de wrote: On Thu, 24 Feb 2011 17:18:03 -0600, Gary Gatten ggat...@waddell.com wrote: Everyone is wrong! pfmsh is the best at everything, period. It does everything you can possibly think of today and tomorrow. It doesn't require any

Re: Backtick versus $()

2011-02-24 Thread Polytropon
On Thu, 24 Feb 2011 19:15:22 -0430, Andres Perera andre...@zoho.com wrote: funny how you point out trivialities and go on to mention one yourself For an interactive command line shell, it's the trivialities that count - for _me_, which indicates that other persons may have very different

Re: Backtick versus $()

2011-02-24 Thread Chad Perrin
On Thu, Feb 24, 2011 at 07:12:55PM -0430, Andres Perera wrote: On Thu, Feb 24, 2011 at 6:54 PM, Chad Perrin per...@apotheon.com wrote: So far, your complaints translate to Well, sure, for every concrete (t)csh problem I've identified, mksh has similar problems, but it's better because I

Re: Backtick versus $()

2011-02-24 Thread Chad Perrin
I'll try to help make it easy for you, since you seem to be having a lot of trouble grasping the concept of actually trying to make a point via logical argument and presentation of evidence: Start with the Wikipedia page comparing command shells [0]. Look through the various tables there -- feel

Re: Backtick versus $()

2011-02-24 Thread Andres Perera
On Thu, Feb 24, 2011 at 7:22 PM, Chad Perrin per...@apotheon.com wrote: On Thu, Feb 24, 2011 at 07:12:55PM -0430, Andres Perera wrote: On Thu, Feb 24, 2011 at 6:54 PM, Chad Perrin per...@apotheon.com wrote: So far, your complaints translate to Well, sure, for every concrete (t)csh problem

Re: Backtick versus $()

2011-02-24 Thread Andres Perera
On Thu, Feb 24, 2011 at 7:56 PM, Chad Perrin per...@apotheon.com wrote: I'll try to help make it easy for you, since you seem to be having a lot of trouble grasping the concept of actually trying to make a point via logical argument and presentation of evidence: Start with the Wikipedia page

Re: Backtick versus $()

2011-02-24 Thread Chip Camden
Quoth Andres Perera on Thursday, 24 February 2011: [snip] no, let's start by looking at the SOURCE CODE REPOSITORY instead of WIKIPEDIA you DROOLING BUFFOON [snip] if you disagree then you are retarded and the exchange concludes [snip] Resorting to personal insults doesn't help make

Re: Backtick versus $()

2011-02-24 Thread Andres Perera
On Thu, Feb 24, 2011 at 8:30 PM, Chip Camden sterl...@camdensoftware.com wrote: Quoth Andres Perera on Thursday, 24 February 2011: [snip] no, let's start by looking at the SOURCE CODE REPOSITORY instead of WIKIPEDIA you DROOLING BUFFOON [snip] if you disagree then you are retarded and

Re: Backtick versus $()

2011-02-24 Thread Chad Perrin
On Thu, Feb 24, 2011 at 08:09:21PM -0430, Andres Perera wrote: On Thu, Feb 24, 2011 at 7:22 PM, Chad Perrin per...@apotheon.com wrote: On Thu, Feb 24, 2011 at 07:12:55PM -0430, Andres Perera wrote: the author of vi, who is also the author of csh regards it as poor code Good for him.

Re: Backtick versus $()

2011-02-24 Thread ill...@gmail.com
On 24 February 2011 17:39, Chip Camden sterl...@camdensoftware.com wrote: . . . Though I dislike the OP's dismissal of backticks, I must admit that I would prefer that the standard shell be at least Bourne-compatible.  I use csh for root for all the reasons that you shouldn't change your root

Re: Backtick versus $()

2011-02-24 Thread Chad Perrin
On Thu, Feb 24, 2011 at 08:14:55PM -0430, Andres Perera wrote: On Thu, Feb 24, 2011 at 7:56 PM, Chad Perrin wrote: I'll try to help make it easy for you, since you seem to be having a lot of trouble grasping the concept of actually trying to make a point via logical argument and

Re: Backtick versus $()

2011-02-24 Thread Chad Perrin
On Thu, Feb 24, 2011 at 08:36:53PM -0430, Andres Perera wrote: On Thu, Feb 24, 2011 at 8:30 PM, Chip Camden sterl...@camdensoftware.com wrote: Quoth Andres Perera on Thursday, 24 February 2011: [snip] no, let's start by looking at the SOURCE CODE REPOSITORY instead of WIKIPEDIA you

Re: Backtick versus $()

2011-02-24 Thread Andres Perera
On Thu, Feb 24, 2011 at 8:43 PM, Chad Perrin per...@apotheon.com wrote: On Thu, Feb 24, 2011 at 08:09:21PM -0430, Andres Perera wrote: On Thu, Feb 24, 2011 at 7:22 PM, Chad Perrin per...@apotheon.com wrote: On Thu, Feb 24, 2011 at 07:12:55PM -0430, Andres Perera wrote: the author of vi,

Re: Backtick versus $()

2011-02-24 Thread Andres Perera
On Thu, Feb 24, 2011 at 9:01 PM, Chad Perrin per...@apotheon.com wrote: On Thu, Feb 24, 2011 at 08:36:53PM -0430, Andres Perera wrote: On Thu, Feb 24, 2011 at 8:30 PM, Chip Camden sterl...@camdensoftware.com wrote: Quoth Andres Perera on Thursday, 24 February 2011: [snip] no, let's

Re: Backtick versus $()

2011-02-24 Thread Chip Camden
Quoth Andres Perera on Thursday, 24 February 2011: That wasn't me.  I could make some insulting references to failings of yours that resulted in this mistake on your part, but I really do not think that's necessary.  It is much more fun to just watch you self-destruct. it doesn't

Re: Backtick versus $()

2011-02-24 Thread Chad Perrin
On Thu, Feb 24, 2011 at 09:15:30PM -0430, Andres Perera wrote: it doesn't matter if it wasn't you if you're all retarded then you are all effectively the same person I see. Suggesting that slinging insults makes him retarded. You are naught but a troll. Killfiled. -- Chad Perrin [

Re: Backtick versus $()

2011-02-24 Thread Andres Perera
On Thu, Feb 24, 2011 at 9:42 PM, Chad Perrin per...@apotheon.com wrote: You are naught but a troll.  Killfiled. actually im the only person that bothered explaining the 2 noobs at the start of the thread how shell works then a buncha jokers started talking about tcsh you are the trolls that

Re: Backtick versus $()

2011-02-24 Thread Chad Perrin
On Thu, Feb 24, 2011 at 05:57:08PM -0800, Chip Camden wrote: Quoth Andres Perera on Thursday, 24 February 2011: That wasn't me.  I could make some insulting references to failings of yours that resulted in this mistake on your part, but I really do not think that's necessary.  It is

Re: Backtick versus $()

2011-02-24 Thread Chad Perrin
On Thu, Feb 24, 2011 at 07:12:23PM -0700, Chad Perrin wrote: On Thu, Feb 24, 2011 at 09:15:30PM -0430, Andres Perera wrote: it doesn't matter if it wasn't you if you're all retarded then you are all effectively the same person I see. Suggesting that slinging insults makes him

Re: Backtick versus $()

2011-02-24 Thread Andres Perera
On Thu, Feb 24, 2011 at 9:54 PM, Chad Perrin per...@apotheon.com wrote: On Thu, Feb 24, 2011 at 07:12:23PM -0700, Chad Perrin wrote: On Thu, Feb 24, 2011 at 09:15:30PM -0430, Andres Perera wrote: it doesn't matter if it wasn't you if you're all retarded then you are all effectively the

Re: Backtick versus $()

2011-02-24 Thread Rob Farmer
On Thu, Feb 24, 2011 at 5:06 PM, Andres Perera andre...@zoho.com wrote: On Thu, Feb 24, 2011 at 8:30 PM, Chip Camden sterl...@camdensoftware.com wrote: -- Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com  | http://camdensoftware.com   |

Re: Backtick versus $()

2011-02-24 Thread Andres Perera
On Thu, Feb 24, 2011 at 10:27 PM, Rob Farmer rfar...@predatorlabs.net wrote: On Thu, Feb 24, 2011 at 5:06 PM, Andres Perera andre...@zoho.com wrote: On Thu, Feb 24, 2011 at 8:30 PM, Chip Camden sterl...@camdensoftware.com wrote: -- Sterling (Chip) Camden | sterl...@camdensoftware.com |

Re: Backtick versus $()

2011-02-20 Thread David Demelier
On 20/02/2011 18:40, Warren Block wrote: $() apparently isn't quite the same as backticks, although sh(1) doesn't mention that, or I just missed it. This script is just supposed to escape special characters* in a path/filename: #!/bin/sh DESTDIR=./ COMPFILE=.cshrc PSTR=`echo

Re: Backtick versus $()

2011-02-20 Thread Warren Block
Dropped the last line of the script. Also lined up the seds to show the regex is the same in both. #!/bin/sh DESTDIR=./ COMPFILE=.cshrc PSTR=`echo ${DESTDIR}${COMPFILE} | sed 's%\([?:.%\\]\)%\\\1%g'` echo ${PSTR} PSTR=$(echo ${DESTDIR}${COMPFILE} | sed 's%\([?:.%\\]\)%\\\1%g') echo ${PSTR}

Re: Backtick versus $()

2011-02-20 Thread Andres Perera
On Sun, Feb 20, 2011 at 1:42 PM, David Demelier demelier.da...@gmail.com wrote: I'd prefere $() rather than ``. It's more powerful, for example you can write a multiple $() but not `` see : that's not true for i in bash dash mksh; do echo $i: $i '!' echo `echo 1\`echo 2\\\`echo 3\\\`echo

Re: Backtick versus $()

2011-02-20 Thread Andres Perera
On Sun, Feb 20, 2011 at 1:10 PM, Warren Block wbl...@wonkity.com wrote: With backticks, the backreference \1 never seems to be replaced with the actual pattern, regardless of search pattern.  Tested on 8-stable and 9-current. this isn't really new and it's not particular to freebsd sh(1) for