1 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
2 |
DENIED
|
moderate
|
Proxies\__CG__\App\Entity\Entry {#1589
+user: Proxies\__CG__\App\Entity\User {#2465 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1588 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1596 …}
+slug: "creating-an-alias-of-a-command-with-plenty-special-characters"
+title: "creating an alias of a command with plenty special characters"
+url: null
+body: """
Hello all, I wan to create an alias of this command: `alias dockps = “docker ps --format “table {{.ID}}t{{.Names}}t{{.Status}}t{{.Ports}}””`\n
\n
The syntax for creating an alias is: `alias $COMMAND = “docker ps --format “table {{.ID}}t{{.Names}}t{{.Status}}t{{.Ports}}””`\n
\n
However, since there are quote marks, I assume they neet to be escaped with ``. But in the case above, I’m getting the errors in fish and bash.\n
\n
Fish error: `$ alias dockps = “docker ps --format “table {{.ID}} {{.Names}} {{.Status}} {{.Ports}}””`\n
\n
`alias: expected <= 2 arguments; got 3`\n
\n
Bash error: `$ alias dockps = “docker ps --format “table {{.ID}} {{.Names}} {{.Status}} {{.Ports}}”” bash: alias: dockps: not found bash: alias: =: not found bash: alias: docker ps --format “table {{.ID}} {{.Names}} {{.Status}} {{.Ports}}”: not found`\n
\n
What am I doing wrong?\n
\n
Thanks in advance!\n
\n
Edit: For fish shell users out there, this can be accomplished by using `func`: `$ function dockerps docker ps --format “table {{.ID}}t{{.Names}}t{{.Status}}t{{.Ports}}” end $ funcsave dockerps `\n
\n
I’m leaving the question up as the question with escape characters is still relevant and can be a learning resouce.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 9
+favouriteCount: 26
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1727302106 {#1725
date: 2024-09-26 00:08:26.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1619 …}
+votes: Doctrine\ORM\PersistentCollection {#1701 …}
+reports: Doctrine\ORM\PersistentCollection {#1680 …}
+favourites: Doctrine\ORM\PersistentCollection {#2458 …}
+notifications: Doctrine\ORM\PersistentCollection {#2422 …}
+badges: Doctrine\ORM\PersistentCollection {#2360 …}
+children: [
App\Entity\EntryComment {#1698
+user: App\Entity\User {#262 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1589 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1588 …}
+image: null
+parent: null
+root: null
+body: """
Just a thought: It should be possible to save the default ps output does that not fit your use case better?\n
\n
`man 5 docker-config-json`\n
\n
[man.archlinux.org/man/…/docker-config-json.5.en](https://man.archlinux.org/man/extra/docker/docker-config-json.5.en)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1727302106 {#1436
date: 2024-09-26 00:08:26.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@krash@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#1581 …}
+nested: Doctrine\ORM\PersistentCollection {#1579 …}
+votes: Doctrine\ORM\PersistentCollection {#1577 …}
+reports: Doctrine\ORM\PersistentCollection {#1578 …}
+favourites: Doctrine\ORM\PersistentCollection {#1587 …}
+notifications: Doctrine\ORM\PersistentCollection {#1671 …}
-id: 327638
-bodyTs: "'/docker-config-json.5.en':31 '/man/':30 '/man/extra/docker/docker-config-json.5.en)':34 '5':23 'better':21 'case':20 'config':26 'default':11 'docker':25 'docker-config-json':24 'fit':17 'json':27 'man':22 'man.archlinux.org':29,33 'man.archlinux.org/man/':28 'man.archlinux.org/man/extra/docker/docker-config-json.5.en)':32 'output':13 'possibl':7 'ps':12 'save':9 'thought':3 'use':19"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6877038"
+editedAt: null
+createdAt: DateTimeImmutable @1705823881 {#1431
date: 2024-01-21 08:58:01.0 +01:00
}
+"title": 327638
}
]
-id: 31883
-titleTs: "'alia':3 'charact':10 'command':6 'creat':1 'plenti':8 'special':9"
-bodyTs: "'2':87 '3':90 'accomplish':142 'advanc':131 'alia':8,12,30,32,75,85,93,104,109,113 'argument':88 'assum':52 'bash':72,91,103,108,112 'case':62 'charact':173 'command':11,33 'creat':6,28 'docker':14,34,77,95,114,148 'dockerp':147,161 'dockp':13,76,94,105 'edit':132 'end':159 'error':68,74,92 'escap':57,172 'expect':86 'fish':70,73,134 'format':16,36,79,97,116,150 'found':107,111,123 'func':145 'funcsav':160 'function':146 'get':66 'got':89 'hello':1 'howev':45 'id':18,38,81,99,118,152 'learn':181 'leav':164 'm':65,163 'mark':50 'name':20,40,82,100,119,154 'neet':54 'port':24,44,84,102,121,158 'ps':15,35,78,96,115,149 'question':166,170 'quot':49 'relev':176 'resouc':182 'shell':135 'sinc':46 'status':22,42,83,101,120,156 'still':175 'syntax':26 'tabl':17,37,80,98,117,151 'thank':129 'use':144 'user':136 'wan':4 'wrong':128"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1705820891
+visibility: "visible "
+apId: "https://lemmy.ml/post/10790028"
+editedAt: DateTimeImmutable @1727023176 {#1690
date: 2024-09-22 18:39:36.0 +02:00
}
+createdAt: DateTimeImmutable @1705734491 {#1737
date: 2024-01-20 08:08:11.0 +01:00
}
+__isInitialized__: true
…2
} |
|
Show voter details
|
3 |
DENIED
|
edit
|
Proxies\__CG__\App\Entity\Entry {#1589
+user: Proxies\__CG__\App\Entity\User {#2465 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1588 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1596 …}
+slug: "creating-an-alias-of-a-command-with-plenty-special-characters"
+title: "creating an alias of a command with plenty special characters"
+url: null
+body: """
Hello all, I wan to create an alias of this command: `alias dockps = “docker ps --format “table {{.ID}}t{{.Names}}t{{.Status}}t{{.Ports}}””`\n
\n
The syntax for creating an alias is: `alias $COMMAND = “docker ps --format “table {{.ID}}t{{.Names}}t{{.Status}}t{{.Ports}}””`\n
\n
However, since there are quote marks, I assume they neet to be escaped with ``. But in the case above, I’m getting the errors in fish and bash.\n
\n
Fish error: `$ alias dockps = “docker ps --format “table {{.ID}} {{.Names}} {{.Status}} {{.Ports}}””`\n
\n
`alias: expected <= 2 arguments; got 3`\n
\n
Bash error: `$ alias dockps = “docker ps --format “table {{.ID}} {{.Names}} {{.Status}} {{.Ports}}”” bash: alias: dockps: not found bash: alias: =: not found bash: alias: docker ps --format “table {{.ID}} {{.Names}} {{.Status}} {{.Ports}}”: not found`\n
\n
What am I doing wrong?\n
\n
Thanks in advance!\n
\n
Edit: For fish shell users out there, this can be accomplished by using `func`: `$ function dockerps docker ps --format “table {{.ID}}t{{.Names}}t{{.Status}}t{{.Ports}}” end $ funcsave dockerps `\n
\n
I’m leaving the question up as the question with escape characters is still relevant and can be a learning resouce.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 9
+favouriteCount: 26
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1727302106 {#1725
date: 2024-09-26 00:08:26.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1619 …}
+votes: Doctrine\ORM\PersistentCollection {#1701 …}
+reports: Doctrine\ORM\PersistentCollection {#1680 …}
+favourites: Doctrine\ORM\PersistentCollection {#2458 …}
+notifications: Doctrine\ORM\PersistentCollection {#2422 …}
+badges: Doctrine\ORM\PersistentCollection {#2360 …}
+children: [
App\Entity\EntryComment {#1698
+user: App\Entity\User {#262 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1589 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1588 …}
+image: null
+parent: null
+root: null
+body: """
Just a thought: It should be possible to save the default ps output does that not fit your use case better?\n
\n
`man 5 docker-config-json`\n
\n
[man.archlinux.org/man/…/docker-config-json.5.en](https://man.archlinux.org/man/extra/docker/docker-config-json.5.en)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1727302106 {#1436
date: 2024-09-26 00:08:26.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@krash@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#1581 …}
+nested: Doctrine\ORM\PersistentCollection {#1579 …}
+votes: Doctrine\ORM\PersistentCollection {#1577 …}
+reports: Doctrine\ORM\PersistentCollection {#1578 …}
+favourites: Doctrine\ORM\PersistentCollection {#1587 …}
+notifications: Doctrine\ORM\PersistentCollection {#1671 …}
-id: 327638
-bodyTs: "'/docker-config-json.5.en':31 '/man/':30 '/man/extra/docker/docker-config-json.5.en)':34 '5':23 'better':21 'case':20 'config':26 'default':11 'docker':25 'docker-config-json':24 'fit':17 'json':27 'man':22 'man.archlinux.org':29,33 'man.archlinux.org/man/':28 'man.archlinux.org/man/extra/docker/docker-config-json.5.en)':32 'output':13 'possibl':7 'ps':12 'save':9 'thought':3 'use':19"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6877038"
+editedAt: null
+createdAt: DateTimeImmutable @1705823881 {#1431
date: 2024-01-21 08:58:01.0 +01:00
}
+"title": 327638
}
]
-id: 31883
-titleTs: "'alia':3 'charact':10 'command':6 'creat':1 'plenti':8 'special':9"
-bodyTs: "'2':87 '3':90 'accomplish':142 'advanc':131 'alia':8,12,30,32,75,85,93,104,109,113 'argument':88 'assum':52 'bash':72,91,103,108,112 'case':62 'charact':173 'command':11,33 'creat':6,28 'docker':14,34,77,95,114,148 'dockerp':147,161 'dockp':13,76,94,105 'edit':132 'end':159 'error':68,74,92 'escap':57,172 'expect':86 'fish':70,73,134 'format':16,36,79,97,116,150 'found':107,111,123 'func':145 'funcsav':160 'function':146 'get':66 'got':89 'hello':1 'howev':45 'id':18,38,81,99,118,152 'learn':181 'leav':164 'm':65,163 'mark':50 'name':20,40,82,100,119,154 'neet':54 'port':24,44,84,102,121,158 'ps':15,35,78,96,115,149 'question':166,170 'quot':49 'relev':176 'resouc':182 'shell':135 'sinc':46 'status':22,42,83,101,120,156 'still':175 'syntax':26 'tabl':17,37,80,98,117,151 'thank':129 'use':144 'user':136 'wan':4 'wrong':128"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1705820891
+visibility: "visible "
+apId: "https://lemmy.ml/post/10790028"
+editedAt: DateTimeImmutable @1727023176 {#1690
date: 2024-09-22 18:39:36.0 +02:00
}
+createdAt: DateTimeImmutable @1705734491 {#1737
date: 2024-01-20 08:08:11.0 +01:00
}
+__isInitialized__: true
…2
} |
|
Show voter details
|
4 |
DENIED
|
moderate
|
Proxies\__CG__\App\Entity\Entry {#1589
+user: Proxies\__CG__\App\Entity\User {#2465 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1588 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1596 …}
+slug: "creating-an-alias-of-a-command-with-plenty-special-characters"
+title: "creating an alias of a command with plenty special characters"
+url: null
+body: """
Hello all, I wan to create an alias of this command: `alias dockps = “docker ps --format “table {{.ID}}t{{.Names}}t{{.Status}}t{{.Ports}}””`\n
\n
The syntax for creating an alias is: `alias $COMMAND = “docker ps --format “table {{.ID}}t{{.Names}}t{{.Status}}t{{.Ports}}””`\n
\n
However, since there are quote marks, I assume they neet to be escaped with ``. But in the case above, I’m getting the errors in fish and bash.\n
\n
Fish error: `$ alias dockps = “docker ps --format “table {{.ID}} {{.Names}} {{.Status}} {{.Ports}}””`\n
\n
`alias: expected <= 2 arguments; got 3`\n
\n
Bash error: `$ alias dockps = “docker ps --format “table {{.ID}} {{.Names}} {{.Status}} {{.Ports}}”” bash: alias: dockps: not found bash: alias: =: not found bash: alias: docker ps --format “table {{.ID}} {{.Names}} {{.Status}} {{.Ports}}”: not found`\n
\n
What am I doing wrong?\n
\n
Thanks in advance!\n
\n
Edit: For fish shell users out there, this can be accomplished by using `func`: `$ function dockerps docker ps --format “table {{.ID}}t{{.Names}}t{{.Status}}t{{.Ports}}” end $ funcsave dockerps `\n
\n
I’m leaving the question up as the question with escape characters is still relevant and can be a learning resouce.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 9
+favouriteCount: 26
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1727302106 {#1725
date: 2024-09-26 00:08:26.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1619 …}
+votes: Doctrine\ORM\PersistentCollection {#1701 …}
+reports: Doctrine\ORM\PersistentCollection {#1680 …}
+favourites: Doctrine\ORM\PersistentCollection {#2458 …}
+notifications: Doctrine\ORM\PersistentCollection {#2422 …}
+badges: Doctrine\ORM\PersistentCollection {#2360 …}
+children: [
App\Entity\EntryComment {#1698
+user: App\Entity\User {#262 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1589 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1588 …}
+image: null
+parent: null
+root: null
+body: """
Just a thought: It should be possible to save the default ps output does that not fit your use case better?\n
\n
`man 5 docker-config-json`\n
\n
[man.archlinux.org/man/…/docker-config-json.5.en](https://man.archlinux.org/man/extra/docker/docker-config-json.5.en)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1727302106 {#1436
date: 2024-09-26 00:08:26.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@krash@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#1581 …}
+nested: Doctrine\ORM\PersistentCollection {#1579 …}
+votes: Doctrine\ORM\PersistentCollection {#1577 …}
+reports: Doctrine\ORM\PersistentCollection {#1578 …}
+favourites: Doctrine\ORM\PersistentCollection {#1587 …}
+notifications: Doctrine\ORM\PersistentCollection {#1671 …}
-id: 327638
-bodyTs: "'/docker-config-json.5.en':31 '/man/':30 '/man/extra/docker/docker-config-json.5.en)':34 '5':23 'better':21 'case':20 'config':26 'default':11 'docker':25 'docker-config-json':24 'fit':17 'json':27 'man':22 'man.archlinux.org':29,33 'man.archlinux.org/man/':28 'man.archlinux.org/man/extra/docker/docker-config-json.5.en)':32 'output':13 'possibl':7 'ps':12 'save':9 'thought':3 'use':19"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6877038"
+editedAt: null
+createdAt: DateTimeImmutable @1705823881 {#1431
date: 2024-01-21 08:58:01.0 +01:00
}
+"title": 327638
}
]
-id: 31883
-titleTs: "'alia':3 'charact':10 'command':6 'creat':1 'plenti':8 'special':9"
-bodyTs: "'2':87 '3':90 'accomplish':142 'advanc':131 'alia':8,12,30,32,75,85,93,104,109,113 'argument':88 'assum':52 'bash':72,91,103,108,112 'case':62 'charact':173 'command':11,33 'creat':6,28 'docker':14,34,77,95,114,148 'dockerp':147,161 'dockp':13,76,94,105 'edit':132 'end':159 'error':68,74,92 'escap':57,172 'expect':86 'fish':70,73,134 'format':16,36,79,97,116,150 'found':107,111,123 'func':145 'funcsav':160 'function':146 'get':66 'got':89 'hello':1 'howev':45 'id':18,38,81,99,118,152 'learn':181 'leav':164 'm':65,163 'mark':50 'name':20,40,82,100,119,154 'neet':54 'port':24,44,84,102,121,158 'ps':15,35,78,96,115,149 'question':166,170 'quot':49 'relev':176 'resouc':182 'shell':135 'sinc':46 'status':22,42,83,101,120,156 'still':175 'syntax':26 'tabl':17,37,80,98,117,151 'thank':129 'use':144 'user':136 'wan':4 'wrong':128"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1705820891
+visibility: "visible "
+apId: "https://lemmy.ml/post/10790028"
+editedAt: DateTimeImmutable @1727023176 {#1690
date: 2024-09-22 18:39:36.0 +02:00
}
+createdAt: DateTimeImmutable @1705734491 {#1737
date: 2024-01-20 08:08:11.0 +01:00
}
+__isInitialized__: true
…2
} |
|
Show voter details
|
5 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
6 |
DENIED
|
moderate
|
App\Entity\EntryComment {#1698
+user: App\Entity\User {#262 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1589
+user: Proxies\__CG__\App\Entity\User {#2465 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1588 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1596 …}
+slug: "creating-an-alias-of-a-command-with-plenty-special-characters"
+title: "creating an alias of a command with plenty special characters"
+url: null
+body: """
Hello all, I wan to create an alias of this command: `alias dockps = “docker ps --format “table {{.ID}}t{{.Names}}t{{.Status}}t{{.Ports}}””`\n
\n
The syntax for creating an alias is: `alias $COMMAND = “docker ps --format “table {{.ID}}t{{.Names}}t{{.Status}}t{{.Ports}}””`\n
\n
However, since there are quote marks, I assume they neet to be escaped with ``. But in the case above, I’m getting the errors in fish and bash.\n
\n
Fish error: `$ alias dockps = “docker ps --format “table {{.ID}} {{.Names}} {{.Status}} {{.Ports}}””`\n
\n
`alias: expected <= 2 arguments; got 3`\n
\n
Bash error: `$ alias dockps = “docker ps --format “table {{.ID}} {{.Names}} {{.Status}} {{.Ports}}”” bash: alias: dockps: not found bash: alias: =: not found bash: alias: docker ps --format “table {{.ID}} {{.Names}} {{.Status}} {{.Ports}}”: not found`\n
\n
What am I doing wrong?\n
\n
Thanks in advance!\n
\n
Edit: For fish shell users out there, this can be accomplished by using `func`: `$ function dockerps docker ps --format “table {{.ID}}t{{.Names}}t{{.Status}}t{{.Ports}}” end $ funcsave dockerps `\n
\n
I’m leaving the question up as the question with escape characters is still relevant and can be a learning resouce.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 9
+favouriteCount: 26
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1727302106 {#1725
date: 2024-09-26 00:08:26.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1619 …}
+votes: Doctrine\ORM\PersistentCollection {#1701 …}
+reports: Doctrine\ORM\PersistentCollection {#1680 …}
+favourites: Doctrine\ORM\PersistentCollection {#2458 …}
+notifications: Doctrine\ORM\PersistentCollection {#2422 …}
+badges: Doctrine\ORM\PersistentCollection {#2360 …}
+children: [
App\Entity\EntryComment {#1698}
]
-id: 31883
-titleTs: "'alia':3 'charact':10 'command':6 'creat':1 'plenti':8 'special':9"
-bodyTs: "'2':87 '3':90 'accomplish':142 'advanc':131 'alia':8,12,30,32,75,85,93,104,109,113 'argument':88 'assum':52 'bash':72,91,103,108,112 'case':62 'charact':173 'command':11,33 'creat':6,28 'docker':14,34,77,95,114,148 'dockerp':147,161 'dockp':13,76,94,105 'edit':132 'end':159 'error':68,74,92 'escap':57,172 'expect':86 'fish':70,73,134 'format':16,36,79,97,116,150 'found':107,111,123 'func':145 'funcsav':160 'function':146 'get':66 'got':89 'hello':1 'howev':45 'id':18,38,81,99,118,152 'learn':181 'leav':164 'm':65,163 'mark':50 'name':20,40,82,100,119,154 'neet':54 'port':24,44,84,102,121,158 'ps':15,35,78,96,115,149 'question':166,170 'quot':49 'relev':176 'resouc':182 'shell':135 'sinc':46 'status':22,42,83,101,120,156 'still':175 'syntax':26 'tabl':17,37,80,98,117,151 'thank':129 'use':144 'user':136 'wan':4 'wrong':128"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1705820891
+visibility: "visible "
+apId: "https://lemmy.ml/post/10790028"
+editedAt: DateTimeImmutable @1727023176 {#1690
date: 2024-09-22 18:39:36.0 +02:00
}
+createdAt: DateTimeImmutable @1705734491 {#1737
date: 2024-01-20 08:08:11.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1588 …}
+image: null
+parent: null
+root: null
+body: """
Just a thought: It should be possible to save the default ps output does that not fit your use case better?\n
\n
`man 5 docker-config-json`\n
\n
[man.archlinux.org/man/…/docker-config-json.5.en](https://man.archlinux.org/man/extra/docker/docker-config-json.5.en)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1727302106 {#1436
date: 2024-09-26 00:08:26.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@krash@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#1581 …}
+nested: Doctrine\ORM\PersistentCollection {#1579 …}
+votes: Doctrine\ORM\PersistentCollection {#1577 …}
+reports: Doctrine\ORM\PersistentCollection {#1578 …}
+favourites: Doctrine\ORM\PersistentCollection {#1587 …}
+notifications: Doctrine\ORM\PersistentCollection {#1671 …}
-id: 327638
-bodyTs: "'/docker-config-json.5.en':31 '/man/':30 '/man/extra/docker/docker-config-json.5.en)':34 '5':23 'better':21 'case':20 'config':26 'default':11 'docker':25 'docker-config-json':24 'fit':17 'json':27 'man':22 'man.archlinux.org':29,33 'man.archlinux.org/man/':28 'man.archlinux.org/man/extra/docker/docker-config-json.5.en)':32 'output':13 'possibl':7 'ps':12 'save':9 'thought':3 'use':19"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6877038"
+editedAt: null
+createdAt: DateTimeImmutable @1705823881 {#1431
date: 2024-01-21 08:58:01.0 +01:00
}
+"title": 327638
} |
|
Show voter details
|
7 |
DENIED
|
edit
|
App\Entity\EntryComment {#1698
+user: App\Entity\User {#262 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1589
+user: Proxies\__CG__\App\Entity\User {#2465 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1588 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1596 …}
+slug: "creating-an-alias-of-a-command-with-plenty-special-characters"
+title: "creating an alias of a command with plenty special characters"
+url: null
+body: """
Hello all, I wan to create an alias of this command: `alias dockps = “docker ps --format “table {{.ID}}t{{.Names}}t{{.Status}}t{{.Ports}}””`\n
\n
The syntax for creating an alias is: `alias $COMMAND = “docker ps --format “table {{.ID}}t{{.Names}}t{{.Status}}t{{.Ports}}””`\n
\n
However, since there are quote marks, I assume they neet to be escaped with ``. But in the case above, I’m getting the errors in fish and bash.\n
\n
Fish error: `$ alias dockps = “docker ps --format “table {{.ID}} {{.Names}} {{.Status}} {{.Ports}}””`\n
\n
`alias: expected <= 2 arguments; got 3`\n
\n
Bash error: `$ alias dockps = “docker ps --format “table {{.ID}} {{.Names}} {{.Status}} {{.Ports}}”” bash: alias: dockps: not found bash: alias: =: not found bash: alias: docker ps --format “table {{.ID}} {{.Names}} {{.Status}} {{.Ports}}”: not found`\n
\n
What am I doing wrong?\n
\n
Thanks in advance!\n
\n
Edit: For fish shell users out there, this can be accomplished by using `func`: `$ function dockerps docker ps --format “table {{.ID}}t{{.Names}}t{{.Status}}t{{.Ports}}” end $ funcsave dockerps `\n
\n
I’m leaving the question up as the question with escape characters is still relevant and can be a learning resouce.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 9
+favouriteCount: 26
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1727302106 {#1725
date: 2024-09-26 00:08:26.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1619 …}
+votes: Doctrine\ORM\PersistentCollection {#1701 …}
+reports: Doctrine\ORM\PersistentCollection {#1680 …}
+favourites: Doctrine\ORM\PersistentCollection {#2458 …}
+notifications: Doctrine\ORM\PersistentCollection {#2422 …}
+badges: Doctrine\ORM\PersistentCollection {#2360 …}
+children: [
App\Entity\EntryComment {#1698}
]
-id: 31883
-titleTs: "'alia':3 'charact':10 'command':6 'creat':1 'plenti':8 'special':9"
-bodyTs: "'2':87 '3':90 'accomplish':142 'advanc':131 'alia':8,12,30,32,75,85,93,104,109,113 'argument':88 'assum':52 'bash':72,91,103,108,112 'case':62 'charact':173 'command':11,33 'creat':6,28 'docker':14,34,77,95,114,148 'dockerp':147,161 'dockp':13,76,94,105 'edit':132 'end':159 'error':68,74,92 'escap':57,172 'expect':86 'fish':70,73,134 'format':16,36,79,97,116,150 'found':107,111,123 'func':145 'funcsav':160 'function':146 'get':66 'got':89 'hello':1 'howev':45 'id':18,38,81,99,118,152 'learn':181 'leav':164 'm':65,163 'mark':50 'name':20,40,82,100,119,154 'neet':54 'port':24,44,84,102,121,158 'ps':15,35,78,96,115,149 'question':166,170 'quot':49 'relev':176 'resouc':182 'shell':135 'sinc':46 'status':22,42,83,101,120,156 'still':175 'syntax':26 'tabl':17,37,80,98,117,151 'thank':129 'use':144 'user':136 'wan':4 'wrong':128"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1705820891
+visibility: "visible "
+apId: "https://lemmy.ml/post/10790028"
+editedAt: DateTimeImmutable @1727023176 {#1690
date: 2024-09-22 18:39:36.0 +02:00
}
+createdAt: DateTimeImmutable @1705734491 {#1737
date: 2024-01-20 08:08:11.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1588 …}
+image: null
+parent: null
+root: null
+body: """
Just a thought: It should be possible to save the default ps output does that not fit your use case better?\n
\n
`man 5 docker-config-json`\n
\n
[man.archlinux.org/man/…/docker-config-json.5.en](https://man.archlinux.org/man/extra/docker/docker-config-json.5.en)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1727302106 {#1436
date: 2024-09-26 00:08:26.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@krash@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#1581 …}
+nested: Doctrine\ORM\PersistentCollection {#1579 …}
+votes: Doctrine\ORM\PersistentCollection {#1577 …}
+reports: Doctrine\ORM\PersistentCollection {#1578 …}
+favourites: Doctrine\ORM\PersistentCollection {#1587 …}
+notifications: Doctrine\ORM\PersistentCollection {#1671 …}
-id: 327638
-bodyTs: "'/docker-config-json.5.en':31 '/man/':30 '/man/extra/docker/docker-config-json.5.en)':34 '5':23 'better':21 'case':20 'config':26 'default':11 'docker':25 'docker-config-json':24 'fit':17 'json':27 'man':22 'man.archlinux.org':29,33 'man.archlinux.org/man/':28 'man.archlinux.org/man/extra/docker/docker-config-json.5.en)':32 'output':13 'possibl':7 'ps':12 'save':9 'thought':3 'use':19"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6877038"
+editedAt: null
+createdAt: DateTimeImmutable @1705823881 {#1431
date: 2024-01-21 08:58:01.0 +01:00
}
+"title": 327638
} |
|
Show voter details
|
8 |
DENIED
|
moderate
|
App\Entity\EntryComment {#1698
+user: App\Entity\User {#262 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1589
+user: Proxies\__CG__\App\Entity\User {#2465 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1588 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1596 …}
+slug: "creating-an-alias-of-a-command-with-plenty-special-characters"
+title: "creating an alias of a command with plenty special characters"
+url: null
+body: """
Hello all, I wan to create an alias of this command: `alias dockps = “docker ps --format “table {{.ID}}t{{.Names}}t{{.Status}}t{{.Ports}}””`\n
\n
The syntax for creating an alias is: `alias $COMMAND = “docker ps --format “table {{.ID}}t{{.Names}}t{{.Status}}t{{.Ports}}””`\n
\n
However, since there are quote marks, I assume they neet to be escaped with ``. But in the case above, I’m getting the errors in fish and bash.\n
\n
Fish error: `$ alias dockps = “docker ps --format “table {{.ID}} {{.Names}} {{.Status}} {{.Ports}}””`\n
\n
`alias: expected <= 2 arguments; got 3`\n
\n
Bash error: `$ alias dockps = “docker ps --format “table {{.ID}} {{.Names}} {{.Status}} {{.Ports}}”” bash: alias: dockps: not found bash: alias: =: not found bash: alias: docker ps --format “table {{.ID}} {{.Names}} {{.Status}} {{.Ports}}”: not found`\n
\n
What am I doing wrong?\n
\n
Thanks in advance!\n
\n
Edit: For fish shell users out there, this can be accomplished by using `func`: `$ function dockerps docker ps --format “table {{.ID}}t{{.Names}}t{{.Status}}t{{.Ports}}” end $ funcsave dockerps `\n
\n
I’m leaving the question up as the question with escape characters is still relevant and can be a learning resouce.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 9
+favouriteCount: 26
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1727302106 {#1725
date: 2024-09-26 00:08:26.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1619 …}
+votes: Doctrine\ORM\PersistentCollection {#1701 …}
+reports: Doctrine\ORM\PersistentCollection {#1680 …}
+favourites: Doctrine\ORM\PersistentCollection {#2458 …}
+notifications: Doctrine\ORM\PersistentCollection {#2422 …}
+badges: Doctrine\ORM\PersistentCollection {#2360 …}
+children: [
App\Entity\EntryComment {#1698}
]
-id: 31883
-titleTs: "'alia':3 'charact':10 'command':6 'creat':1 'plenti':8 'special':9"
-bodyTs: "'2':87 '3':90 'accomplish':142 'advanc':131 'alia':8,12,30,32,75,85,93,104,109,113 'argument':88 'assum':52 'bash':72,91,103,108,112 'case':62 'charact':173 'command':11,33 'creat':6,28 'docker':14,34,77,95,114,148 'dockerp':147,161 'dockp':13,76,94,105 'edit':132 'end':159 'error':68,74,92 'escap':57,172 'expect':86 'fish':70,73,134 'format':16,36,79,97,116,150 'found':107,111,123 'func':145 'funcsav':160 'function':146 'get':66 'got':89 'hello':1 'howev':45 'id':18,38,81,99,118,152 'learn':181 'leav':164 'm':65,163 'mark':50 'name':20,40,82,100,119,154 'neet':54 'port':24,44,84,102,121,158 'ps':15,35,78,96,115,149 'question':166,170 'quot':49 'relev':176 'resouc':182 'shell':135 'sinc':46 'status':22,42,83,101,120,156 'still':175 'syntax':26 'tabl':17,37,80,98,117,151 'thank':129 'use':144 'user':136 'wan':4 'wrong':128"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1705820891
+visibility: "visible "
+apId: "https://lemmy.ml/post/10790028"
+editedAt: DateTimeImmutable @1727023176 {#1690
date: 2024-09-22 18:39:36.0 +02:00
}
+createdAt: DateTimeImmutable @1705734491 {#1737
date: 2024-01-20 08:08:11.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1588 …}
+image: null
+parent: null
+root: null
+body: """
Just a thought: It should be possible to save the default ps output does that not fit your use case better?\n
\n
`man 5 docker-config-json`\n
\n
[man.archlinux.org/man/…/docker-config-json.5.en](https://man.archlinux.org/man/extra/docker/docker-config-json.5.en)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1727302106 {#1436
date: 2024-09-26 00:08:26.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@krash@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#1581 …}
+nested: Doctrine\ORM\PersistentCollection {#1579 …}
+votes: Doctrine\ORM\PersistentCollection {#1577 …}
+reports: Doctrine\ORM\PersistentCollection {#1578 …}
+favourites: Doctrine\ORM\PersistentCollection {#1587 …}
+notifications: Doctrine\ORM\PersistentCollection {#1671 …}
-id: 327638
-bodyTs: "'/docker-config-json.5.en':31 '/man/':30 '/man/extra/docker/docker-config-json.5.en)':34 '5':23 'better':21 'case':20 'config':26 'default':11 'docker':25 'docker-config-json':24 'fit':17 'json':27 'man':22 'man.archlinux.org':29,33 'man.archlinux.org/man/':28 'man.archlinux.org/man/extra/docker/docker-config-json.5.en)':32 'output':13 'possibl':7 'ps':12 'save':9 'thought':3 'use':19"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6877038"
+editedAt: null
+createdAt: DateTimeImmutable @1705823881 {#1431
date: 2024-01-21 08:58:01.0 +01:00
}
+"title": 327638
} |
|
Show voter details
|
9 |
DENIED
|
ROLE_ADMIN
|
null |
|
Show voter details
|
10 |
DENIED
|
ROLE_MODERATOR
|
null |
|
Show voter details
|