[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] Simple echo is printing the wrong value
From: |
DJ Mills |
Subject: |
Re: [Help-bash] Simple echo is printing the wrong value |
Date: |
Fri, 6 Apr 2012 18:37:00 -0400 |
On Thu, Apr 5, 2012 at 6:49 PM, Bob Proulx <address@hidden> wrote:
> Bill Gradwohl wrote:
>
> For example '[ ... ]' versus '[[ ... ]]'. That will be your first
> homework assignment. Which of those are external and which of those
> are external? Hint: Use of 'type -a' is useful to help with this.
> Does knowing this explain why one is doing word splitting, file
> globbing, and other parameter actions that need quoting to prevent
> while the other one doesn't?
>
> Bob
>
The term you're looking for in "type" output is actually "shell
keyword", not just "shell builtin". Keywords like if, case, and [[
actually change the way bash parses the line. Regular builtins do not,
they're treated just like any other command.
- Re: [Help-bash] Simple echo is printing the wrong value, (continued)
- Re: [Help-bash] Simple echo is printing the wrong value, Greg Wooledge, 2012/04/04
- Re: [Help-bash] Simple echo is printing the wrong value, Bill Gradwohl, 2012/04/04
- Re: [Help-bash] Simple echo is printing the wrong value, Greg Wooledge, 2012/04/04
- Re: [Help-bash] Simple echo is printing the wrong value, Bill Gradwohl, 2012/04/04
- Re: [Help-bash] Simple echo is printing the wrong value, Greg Wooledge, 2012/04/04
- Re: [Help-bash] Simple echo is printing the wrong value, Chet Ramey, 2012/04/04
- Re: [Help-bash] Simple echo is printing the wrong value, Bill Gradwohl, 2012/04/04
- Re: [Help-bash] Simple echo is printing the wrong value, Greg Wooledge, 2012/04/05
- Re: [Help-bash] Simple echo is printing the wrong value, Chet Ramey, 2012/04/05
- Re: [Help-bash] Simple echo is printing the wrong value, Bob Proulx, 2012/04/05
- Re: [Help-bash] Simple echo is printing the wrong value,
DJ Mills <=
- Re: [Help-bash] Simple echo is printing the wrong value, Eric Blake, 2012/04/04