Skip to content

Instantly share code, notes, and snippets.

@Tombar
Created June 17, 2012 03:12
Show Gist options
  • Save Tombar/2943276 to your computer and use it in GitHub Desktop.
Save Tombar/2943276 to your computer and use it in GitHub Desktop.
rvm get @fish
tombar@Erebor ~/D/W/Gruwlss> rvm get
fish: Illegal command name 'get_usage()'
/private/var/folders/40/19ww5r3168xbdf8251qrjdwc0000gn/T/16178 (line 5): get_usage()
^
fish: Illegal command name '{'
/private/var/folders/40/19ww5r3168xbdf8251qrjdwc0000gn/T/16178 (line 6): {
^
fish: Illegal command name '}'
/private/var/folders/40/19ww5r3168xbdf8251qrjdwc0000gn/T/16178 (line 8): }
^
fish: Illegal command name 'get_via_installer()'
/private/var/folders/40/19ww5r3168xbdf8251qrjdwc0000gn/T/16178 (line 10): get_via_installer()
^
fish: Illegal command name '{'
/private/var/folders/40/19ww5r3168xbdf8251qrjdwc0000gn/T/16178 (line 11): {
^
fish: The '$' character begins a variable name. The character '@', which directly followed a '$', is not allowed as a part of a variable name, and variable names may not be zero characters long. To learn more about variable expansion in fish, type 'help expand-variable'.
/private/var/folders/40/19ww5r3168xbdf8251qrjdwc0000gn/T/16178 (line 12): curl -L get.rvm.io | bash -s -- $@ || return $?
^
fish: Expected a command name, got token of type 'Pipe'. Did you mean 'COMMAND; or COMMAND'? See the help section for the 'or' builtin command by typing 'help or'.
/private/var/folders/40/19ww5r3168xbdf8251qrjdwc0000gn/T/16178 (line 12): curl -L get.rvm.io | bash -s -- $@ || return $?
^
fish: This command can not be used in a pipeline
/private/var/folders/40/19ww5r3168xbdf8251qrjdwc0000gn/T/16178 (line 12): curl -L get.rvm.io | bash -s -- $@ || return $?
^
fish: 'return' builtin command outside of function definition
/private/var/folders/40/19ww5r3168xbdf8251qrjdwc0000gn/T/16178 (line 12): curl -L get.rvm.io | bash -s -- $@ || return $?
^
fish: The '$' character begins a variable name. The character '', which directly followed a '$', is not allowed as a part of a variable name, and variable names may not be zero characters long. To learn more about variable expansion in fish, type 'help expand-variable'.
/private/var/folders/40/19ww5r3168xbdf8251qrjdwc0000gn/T/16178 (line 12): curl -L get.rvm.io | bash -s -- $@ || return $?
^
fish: 'return' builtin command outside of function definition
/private/var/folders/40/19ww5r3168xbdf8251qrjdwc0000gn/T/16178 (line 18): return 0
^
fish: Illegal command name '}'
/private/var/folders/40/19ww5r3168xbdf8251qrjdwc0000gn/T/16178 (line 19): }
^
fish: 'case' builtin not inside of switch block
/private/var/folders/40/19ww5r3168xbdf8251qrjdwc0000gn/T/16178 (line 21): case "$1" in
^
case ‐ conditionally execute a block of commands
Synopsis
switch VALUE; [case [WILDCARD...]; [COMMANDS...]; ...] end
Description
The switch statement is used to perform one of several blocks of
commands depending on whether a specified value equals one of several
wildcarded values. The case statement is used together with the switch
statement in order to determine which block should be performed.
Each case command is given one or more parameter. The first case
command with a parameter that matches the string specified in the
switch command will be evaluated. case parameters may contain
wildcards. These need to be escaped or quoted in order to avoid regular
wildcard expansion using filenames.
Note that fish does not fall through on case statements. Though the
syntax may look a bit like C switch statements, it behaves more like
the case statements of traditional shells.
Also note that command substitutions in a case statement will be
evaluated even if it’s body is not taken. This may seem
counterintuitive at first, but it is unavoidable, since it would be
impossible to know if a case command will evaluate to true before all
forms of parameter expansion have been performed for the case command.
Example
If the variable $animal contains the name of an animal, the following
code would attempt to classify it:
switch $animal
case cat
echo evil
case wolf dog human moose dolphin whale
echo mammal
case duck goose albatross
echo bird
case shark trout stingray
echo fish
case ’*’
echo I have no idea what a $animal is
end
If the above code was run with $animal set to whale, the output would
be mammal.
fish: Illegal command name '(stable|master|head|branch|latest|latest-*|[0-9]*.[0-9]*.[0-9]*)'
/private/var/folders/40/19ww5r3168xbdf8251qrjdwc0000gn/T/16178 (line 22): (stable|master|head|branch|latest|latest-*|[0-9]*.[0-9]*.[0-9]*)
^
fish: The '$' character begins a variable name. The character '@', which directly followed a '$', is not allowed as a part of a variable name, and variable names may not be zero characters long. To learn more about variable expansion in fish, type 'help expand-variable'.
/private/var/folders/40/19ww5r3168xbdf8251qrjdwc0000gn/T/16178 (line 23): get_via_installer $@
^
fish: Illegal command name '(help)'
/private/var/folders/40/19ww5r3168xbdf8251qrjdwc0000gn/T/16178 (line 26): (help)
^
fish: Illegal command name '(*)'
/private/var/folders/40/19ww5r3168xbdf8251qrjdwc0000gn/T/16178 (line 31): (*)
^
fish: The '$' character begins a variable name. The character '', which directly followed a '$', is not allowed as a part of a variable name, and variable names may not be zero characters long. To learn more about variable expansion in fish, type 'help expand-variable'.
/private/var/folders/40/19ww5r3168xbdf8251qrjdwc0000gn/T/16178 (line 36): exit $?
^
fish: Error while reading file /private/var/folders/40/19ww5r3168xbdf8251qrjdwc0000gn/T/16178
Could not update RVM, get some help at #rvm IRC channel at freenode servers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment