Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Enquote-Apostrophen in der Bash entfernen.
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 3254
Location: de

PostPosted: Sun Apr 03, 2016 8:08 am    Post subject: [solved] Enquote-Apostrophen in der Bash entfernen. Reply with quote

Einen wunderschönen Sonntag-Morgen wünsch ich,

seit einiger Zeit hab ich in der Bash Apostrophe stehen bei Dateien und Verzeichnissen, die Leerzeichen enthalten. Das sieht sehr unschön aus. Beispiel:

Code:
insgesamt 8
drwxr-xr-x  2 sm users 4096  3. Apr 10:08 .
drwxr-xr-x 21 sm users 4096  2. Apr 15:16 ..
-rw-r--r--  1 sm users    0  3. Apr 10:08 'mit leerzeichen.txt'
-rw-r--r--  1 sm users    0  3. Apr 10:07 ohne_leerzeichen.txt

Wie krieg ich das wieder weg?


Last edited by musv on Sun Apr 03, 2016 6:04 pm; edited 1 time in total
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 3669
Location: Germany

PostPosted: Sun Apr 03, 2016 1:25 pm    Post subject: Reply with quote

Ja, das ist das neue Verhalten von ls welches mit >=coreutils-8.25 kam.
Wenn du das nicht möchtest sollte --quoting-style=literal bei ls helfen.
(für genaueres schaue dazu auch im man ls)
Back to top
View user's profile Send private message
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 3254
Location: de

PostPosted: Sun Apr 03, 2016 6:04 pm    Post subject: Reply with quote

Danke
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum