mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-23 10:51:14 -03:00
Add string 'repeat' subcommand
This feature add the ability to repeat a string a given number of times. For example: string repeat -n 3 foo
This commit is contained in:
@@ -63,3 +63,23 @@ missing argument returns 0
|
||||
no regexp invert match
|
||||
no glob invert match
|
||||
1 3
|
||||
foofoo
|
||||
foofoo
|
||||
foofoo
|
||||
exit 0
|
||||
exit 0
|
||||
exit 1
|
||||
exit 1
|
||||
exit 1
|
||||
there is no newline
|
||||
there is no newline
|
||||
foof
|
||||
foofo
|
||||
foofoofoo
|
||||
foof
|
||||
exit 2
|
||||
exit 2
|
||||
exit 2
|
||||
exit 2
|
||||
exit 2
|
||||
exit 2
|
||||
|
||||
Reference in New Issue
Block a user