Welcome to the Linux Foundation Forum!

Lab 3.4 typo

Lab 3.4. solution says:

$ alias projx='cd /home/staff/RandD/projects/projectX/src'
Note you can use double quotes instead of single quotes, or use no quotes at
all since their is no white space in your defined alias.

The word their should be there.
Also the word since seems to imply that in the previous command we could drop
the quotes, which would create and alias projx=cd and return error about not
being able to find/execute the command /home/staff/RandD/projects/projectX/src.
I might be missing some knowledge on english semantics though so correct me if
I'm wrong about that. In any case replacing it with if or something similar
would make it clearer imho.

Suggested correction would read:

Note you can use double quotes instead of single quotes, or use no quotes at
all if there is no white space in your defined alias.

Comments

  • coop
    coop Posts: 916

    Thank for pointing out the "their->there" typo. As far as the English goes, the word since is perfectly correct as it is not making a general statement but is speaking about this particular example. Another wording would have been "..because there is no white space..." "Since" was the author's intent and is correct.

  • coppie
    coppie Posts: 2

    The word "since" still feels wrong. There is a white space between the quotes in
    that particular example and omitting them would change the meaning of the command,
    while also returning an error (as /home/staff/RandD/projects/projectX/src is itself
    not an alias).

    user@localhost ~ $ alias projx='cd /home/staff/RandD/projects/projectX/src'
    user@localhost ~ $ alias projx=cd /home/staff/RandD/projects/projectX/src
    bash: alias: /home/staff/RandD/projects/projectX/src: not found
    user@localhost ~ $ alias projx
    alias projx='cd'
    

Categories

Upcoming Training